regarding .wav file
조회 수: 16 (최근 30일)
이전 댓글 표시
Hey
Is there any way to convert a .wav file into .txt file using MATLAB? Please help.
Thanks!
댓글 수: 0
채택된 답변
Andreas Goser
2012년 1월 23일
% Create WAV file in current folder for this test
load handel.mat
hfile='handel.wav';
wavwrite(y, Fs, hfile)
clear y Fs
% Read the data back into MATLAB
[y, Fs, nbits, readinfo] = wavread(hfile);
% Save as ASCII text file
save('handel.txt', 'y', '-ASCII')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!