Super Nerdy Cool

My (technical) adventures through the professional world…
February 17, 2011

(Batch) Amplify audio files from the command line

Audacity is great, but it’s a GUI and sometimes I just want to do basic things like amplify the sound of some mp3 files. Discovered mp3gain from this thread and wrote this script to batch amplify the files:

 <pre class="src src-sh"><span style="color: #ff4500;">#</span><span style="color: #ff4500;">! /bin/</span><span style="color: #00ffff;">bash</span>

## http://boards.straightdope.com/sdmb/archive/index.php/t-339352.html

gainval=10 for file in “$@” do mp3gain -g $gainval $file done

Note that mp3gain alters the original mp3 files directly. My default value is 10; feel free to alter it.

1 Comment to “(Batch) Amplify audio files from the command line”

Leave a Comment