Search code examples
pythonaudioaudio-analysis

Measure amount of clipping


Can anyone point me to a command-line tool or Python module that measures the amount of clipping in an audio file? For example something comparable to http://www.ber-sd.com/dl_clipping.html.


Solution

  • I ended up using:

    sox testt.wav -n stats
    

    Where the value Pk count returns the amount of clipping.