Skip to content

Instantly share code, notes, and snippets.

@jmcarbo
Created July 15, 2016 12:23
Show Gist options
  • Save jmcarbo/e2c457674fd5be1b8191c8a15612d157 to your computer and use it in GitHub Desktop.
Save jmcarbo/e2c457674fd5be1b8191c8a15612d157 to your computer and use it in GitHub Desktop.
fullfile=$1
filename=$(basename "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"
sox --guard "$fullfile" temp.wav gain -l 15
lame -V0 -vbr-new temp.wav "$filename.mp3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment