#!/bin/bash
for f in *.wav; do
  # Normalize volume without limiting (the limiter in normalize seems
  # ineffective)
  normalize -v -a -10dB --clipping $f
  # Bring up the quiet bits but don't squash the loud bits.
  sox -V $f n$f compand .05,.5 -25,-15,-10,-10 0 -25 .05
  mv n$f $f
done
