Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the algorithm to convert an mp3 file to a wav file?

Tags:

audio

mp3

wav

aac

What is the algorithm to convert an mp3 file to a wav file?

like image 776
Evil Nodoer Avatar asked Aug 16 '10 23:08

Evil Nodoer


People also ask

How do you convert MP3 to WAV file?

Drag or upload MP3 files to the encoding queue. Select WAV from the Format and Presets drop-down list of the file in the queue. Choose the desired file or files in the queue panel and select Edit › Export Settings to adjust any settings. Start the queue to encode the MP3 and export your new WAV file.

What happens when we convert MP3 to WAV?

What happens when you convert an MP3 to a WAV? Nothing. All of the sound of the mp3 will be there in the . wav file when you convert it as you are decompressing the mp3 to a lossless file - .


2 Answers

It's non-trivial to say the least. You could get an overview of the algorithm here:

http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.26.5956&rep=rep1&type=pdf

But I would suggest using a library for your programming needs, for example:

http://www.ffmpeg.org/

like image 173
Doug Avatar answered Oct 01 '22 02:10

Doug


As for the mp3 file, I can offer you mpg123 .net wrapper that is extremely easy to use - you will get the sample for reading the mp3, extracting PCM information from it (this is main part of WAV file - PCM data for the sound).

Please, go here:

http://sourceforge.net/projects/mpg123net/

and download sample code from here:

http://sourceforge.net/projects/mpg123net/files/

Ping me if you need more info/help on the subject.

As aac files are concerned, there is faad project here:

http://www.audiocoding.com/faad2.html

that enables you to do the same with the aac file. If you need .net wrapper, I'm about to put it on sourceforge also.

like image 27
Daniel Mošmondor Avatar answered Oct 01 '22 01:10

Daniel Mošmondor