MATLAB: Regarding .wav file

conversiontxtwav

Hey
Is there any way to convert a .wav file into .txt file using MATLAB? Please help.
Thanks!

Best Answer

% 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')