how to read .mp3 file in matlab programm

  • Follow


plz..... any one answer my query plz help me or provide me the codes to read the mp3 file in matlab....
0
Reply Tanuj 11/4/2010 3:19:06 PM

"Tanuj " <tanuj1916@gmail.com> wrote in message <iauita$jp7$1@fred.mathworks.com>...
> plz..... any one answer my query plz help me or provide me the codes to read the mp3 file in matlab....

did you try search?  Googling "reading mp3 file MATLAB" yielded quite a few hits..  for example:
http://www.mathworks.com/matlabcentral/fileexchange/13852-mp3read-and-mp3write
0
Reply Mario 11/4/2010 3:25:08 PM


"Tanuj " <tanuj1916@gmail.com> wrote in message <iauita$jp7$1@fred.mathworks.com>...
> plz..... any one answer my query plz help me or provide me the codes to read the mp3 file in matlab....

If you have the Signal Processing Blockset in R2010b, you can use the System object dsp.AudioFileReader to read .mp3 files on the Windows platform.

hfr = dsp.AudioFileReader('yourfile.mp3');
hplay = dsp.AudioPlayer('SampleRate',sample_rate_here);
 while ~isDone(hfr)
         audio = step(hfr);
         step(hplay, audio);
      end

Wayne
0
Reply Wayne 11/4/2010 4:46:04 PM

"Wayne King" <wmkingty@gmail.com> wrote in message <iauo0c$rmr$1@fred.mathworks.com>...
> "Tanuj " <tanuj1916@gmail.com> wrote in message <iauita$jp7$1@fred.mathworks.com>...
> > plz..... any one answer my query plz help me or provide me the codes to read the mp3 file in matlab....
> 
> If you have the Signal Processing Blockset in R2010b, you can use the System object dsp.AudioFileReader to read .mp3 files on the Windows platform.
> 
> hfr = dsp.AudioFileReader('yourfile.mp3');
> hplay = dsp.AudioPlayer('SampleRate',sample_rate_here);
>  while ~isDone(hfr)
>          audio = step(hfr);
>          step(hplay, audio);
>       end
> 
> Wayne

How to do it in R2010a?
ALso I want to do audio steganography. SO how to proceed.
0
Reply govindt2008 (15) 2/13/2011 5:35:04 PM

"Govind Chowdhari" <govindt2008@gmail.com> wrote in message <ij94o8$53t$1@fred.mathworks.com>...
> "Wayne King" <wmkingty@gmail.com> wrote in message <iauo0c$rmr$1@fred.mathworks.com>...
> > "Tanuj " <tanuj1916@gmail.com> wrote in message <iauita$jp7$1@fred.mathworks.com>...
> > > plz..... any one answer my query plz help me or provide me the codes to read the mp3 file in matlab....
> > 
> > If you have the Signal Processing Blockset in R2010b, you can use the System object dsp.AudioFileReader to read .mp3 files on the Windows platform.
> > 
> > hfr = dsp.AudioFileReader('yourfile.mp3');
> > hplay = dsp.AudioPlayer('SampleRate',sample_rate_here);
> >  while ~isDone(hfr)
> >          audio = step(hfr);
> >          step(hplay, audio);
> >       end
> > 
> > Wayne
> 
> How to do it in R2010a?
> ALso I want to do audio steganography. SO how to proceed.

In R2010a, you should be able to use video.MultimediaFileReader from the VIP blockset, or signalblks.MultimediaFileReader from the Signal Processing Blockset for a .mp3 file on the Windows platform.

Wayne
0
Reply wmkingty (1429) 2/13/2011 7:14:03 PM

4 Replies
826 Views

(page loaded in 0.067 seconds)

Similiar Articles:













7/24/2012 3:15:43 AM


Reply: