wave.sh converts mp3 files to wav files. It's a simple shell script, that is only handy if you, like me, forget the parameters for SoX.
None; do as you please with it.
#!/bin/sh
for MP3 in *.mp3
do
WAV="${MP3%.mp3}.wav"
echo "Converting $MP3"
[ ! -s "${WAV}" ] && (mpg123 -s -q "$MP3" | \
sox -c2 -s -w -t raw -r 44100 - -t wav -> "$WAV")
done
© 2004 b10m - GPG-public key