How to convert stereo wav file to mono Matlab?

Asked By 20 points N/A Posted on -
qa-featured

Hi. I am working in Matlab and has created a 2 channel wave file. Now I am trying to change the file type from stereo to mono using different codes but the result is not correct as expected. Please suggest me how to convert stereo wav to mono Matlab. Any function or piece of code is available for it?

SHARE
Answered By 0 points N/A #199357

How to convert stereo wav file to mono Matlab?

qa-featured

 

Dear user,
If the stereo file you have is in from a .WAV file or is an mp3 file and is available from file exchange, you will see a two column matrix, Now, the channel on the left of the stereo you have is column 1 and on your right is column 2.
 
[Sound,Fs,Prec] = wavread('Myfile.wav');
 
Mono = (Sound(:,1)+Sound(:,2))/2;
Hope this will help you.
Thank you.

Login/Register to Answer

Related Questions