Read/Write audio files in Matlab

1 view (last 30 days)
Kevin
Kevin on 9 Feb 2012
Hi everyone,
I would like to read/write audio files (eg. *.wav, *.mp3) in Matlab. I know that Matlab comes with wavread.m and wavwrite.m. So that is good. But what about mp3? I have tried mp3read from File Exchange but it complained about running out of memory when I try to load a few megabyte mp3 file into Matlab.
It does not need to be free. I am willing to pay for a commercial audio toolbox (if it exists).
I am starting to work on audio signal processing. If you happen to know of any good resource for learning audio, please let me know.
Thanks

Answers (2)

Grzegorz Knor
Grzegorz Knor on 9 Feb 2012
I propose to use any MP3 to WAV converter, and then wavread & wavwrite functions.

Jan
Jan on 9 Feb 2012
There are two submissions in the FEX, which contain a function mp3read. If one of them creates an error message, it would be helpful, if you explain which function you are talking of, post the the error message, ask the author and try the other one.
In addition I can recommend to ask Google for further solutions: Google: Matlab+mp3+read?.

Categories

Find more on Audio I/O and Waveform Generation 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!