#/bin/sh in=$1 out=$2 [ ! "$out" ] && out="$(basename "$in").wav" mpg123 -s "$in" | sox -V -t raw -r 44100 -s -w -c 2 - "$out"