Last active
August 29, 2015 13:57
-
-
Save dylan/9420056 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#For use with automator and sox | |
process () { | |
/usr/local/bin/sox "$1" "$1:r.wav" | |
} | |
for x; do | |
if [ -d $x ]; then | |
FILES=($x/*.(aif|mp3|ogg|m4a|flac)) | |
for file in $FILES; do | |
process $file | |
done | |
else | |
process $x | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment