Skip to content

Instantly share code, notes, and snippets.

@notthetup
Last active February 16, 2023 18:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notthetup/4251310 to your computer and use it in GitHub Desktop.
Save notthetup/4251310 to your computer and use it in GitHub Desktop.
SoX Normalize (Leveller) for speech.
#!/bin/bash
filename=${1%%.*}
extension=${1##*.}
outputname="$filename"_levelled.$extension
sox $1 $outputname highpass 80 lowpass 8000 compand 0.01,1 -80,-80,-55,-20,-20,-15,0,0 0 -40 0.1 norm -0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment