Quick conversion from mp3 to wav

Michael Ulm michael.ulm at isis-papyrus.com
Tue Nov 27 06:44:32 UTC 2007

Dana J. Laude wrote:
> Michael Ulm wrote:
>> Luca wrote:
>>> Hi All.
>>> I need a program available on kubuntu repository to convert some mp3
>>> tracks to wav files...
>>> I'm sorry but I cant find any usefull by the apt-cache search command...
>> If you have nothing against the command line I can recommend SoX. With
>> this it is as simple as
>> sox song.mp3 song.wav
> Audacity works fine for a gui, but rather tedious for a lot of 
> files. A command line option would work cool, if you could say do 
> (as in your example) sox /opt/tunes/mp3/*.mp3 /opt/tunes/ogg/*.ogg)
> .. or whatever.
> Dana

This can be done using standard shell scripting capabilities. The
syntax is (assuming you use bash, and btw. this is untested)

for i in /opt/tunes/mp3/*.mp3; do sox "$i" "${i/.mp3}".wav; done



More information about the kubuntu-users mailing list