How do I get the volume levels from an audio file?
I can give you a quick and hacky solution with sox that can be easily installed on any Linux distribution.
sox in.wav -n trim 0 0.1 stats : newfile : restart 2&gt;&amp;1 | grep 'RMS lev dB' | awk '{ print $4 }'
This will return RMS levels for each 0.1 second chunk. Change in.wav to the input file and 0.1 if you require a different frame length.