Last active
July 20, 2019 17:11
-
-
Save Lokua/3a8c36f555f61887052c8232474edc10 to your computer and use it in GitHub Desktop.
converts all wav files in cwd to highest quality lame mp3
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
#!/bin/bash | |
function wav2mp3() { | |
for filename in *.wav; do | |
echo wav2mp3: converting $filename | |
mp3_filename="${filename[@]/%wav/mp3}" | |
lame --preset insane "$filename" "$mp3_filename" | |
echo wav2mp3: finished converting $filename | |
echo | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
only used on mac, needs: