[ale] converting a directory of mp3's to wav's

cfowler cfowler at outpostsentinel.com
Thu Jan 9 14:49:45 EST 2003


for i in *.mp3
do
 mpg123 -s $i | sox -t raw -r 44100 -s -w -c 2 - `basename $i .mp3`.wav
done


On Thu, 2003-01-09 at 14:40, Jason Vinson wrote:
> Hi folks,
> 
> Can anyone help me with a quick command to decode all mp3's in a
> directory to wav's?  Currently I use this:
> 
> mpg123 -s blah.mp3 | sox -t raw -r 44100 -s -w -c 2 - blah.wav
> 
> but I am doing it for individual files (in this case, blah.mp3).  Can
> someone loop me?
> 
> TIA,
> Jason
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list