regarding .wav file
6 views (last 30 days)
Show older comments
Hey
Is there any way to convert a .wav file into .txt file using MATLAB? Please help.
Thanks!
0 Comments
Accepted Answer
Andreas Goser
on 23 Jan 2012
% 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')
5 Comments
More Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!