Convert mp3 file to wav? using the command line?

I have an Mp3 file i need to convert to .wav to be able to import it into a voice changer program.

How do I do this using the command line?


Using ffmpeg - installed by default

ffmpeg -i input.mp3 output.wav 

Alternative - mpg123

sudo apt-get install mpg123

Then to convert mp3 to wav (using -w option)

mpg123 -w output.wav input.mp3