Normalising audio with sox
Update - as of sox 14.3.0 it is much simpler than described below - simply do: sox --norm before.wav after.wav
Seem to be on a roll with Sox tonight. Also figured out how to normalise audio files nicely.
The first thing to do with sox is to get it to calculate the max volume adjustment possible:
sox before.wav -n stat -v
This will return a number like: 4.234
You can then call sox again using this number:
sox -v 4.234 before.wav after.wav
And if you're feeling particularly good you can put the whole command on a single line as follows:
sox -v `sox before.wav -n stat -v 2>&1` before.wav after.wav
Easy when you know how.
Comments
Comments are not allowed for this entry.

