for f in *.wav; do sox "$f" "${f%.wav}.flac"; done