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.
Speex(.spx) file first need to covert into wave(.wav) file using ffmpeg.
ffmpeg -i filename.spx filename.wav
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.