Convert Speex file into MP3

Speex to Mp3 using ffmpeg and lame

In one of the project we receive a speex(.spx) file from client and we have to play on browser as well as in local machine.

So i am using ffmpeg and lame to do this job.It is 2 step process.

Step 1

Speex(.spx) file first need to covert into wave(.wav) file using ffmpeg.

ffmpeg -i filename.spx filename.wav

Step 2

After wave(.wav) conversion convert into mp3 using lame library

lame filename.wav filename.mp3

More info regarding lame you can find out here.

You can also manipulate ffmpeg and lame parameter as per requirement.

Leave a reply:

Your email address will not be published.

Site Footer