35

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?

45

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
  • Hi ,if possible could you expand it to run on all files in a folder? – kRazzy R Feb 20 '18 at 21:21
  • 7
    @kRazzyR: for f in ls; do ffmpeg -i $f $(basename $f).wav; done – datakid Mar 31 '18 at 2:06

protected by Community Mar 5 at 14:33

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.