.mp3 to .wav
Jump to navigation
Jump to search
mp32wav
#!/bin/sh
#
# mp3 to wav
#
# This script will encode ALL .mp3's in the working
# directory to .wav format. No need to pass any arguments.
# Especially usefull for preparing a group of files
# to be burned to an audio CD.
for i in *.mp3; do
echo "$i"
tgt=$(echo "$i" | sed -e "s/mp3/wav/")
mpg123 -b 10000 -s -r 44100 "$i" | sox -t raw -r 44100 -s -w -c2 - "$tgt"
done