regarding .wav file

4 visualizaciones (últimos 30 días)
Aparna
Aparna el 23 de En. de 2012
Hey
Is there any way to convert a .wav file into .txt file using MATLAB? Please help.
Thanks!

Respuesta aceptada

Andreas Goser
Andreas Goser el 23 de En. de 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 comentarios
Aparna
Aparna el 24 de En. de 2012
Ok thank you very much for your help! :)
Aparna
Aparna el 13 de Mzo. de 2012
I am sorry to disturb you on this query again but i am not very clear about what y is in the wavwrite step..
Can you kindly let me know about this?
Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by