-
Calculate sound pressure level
usage: rmscalculator.py [file] [1st period start] [1st period end] [2nd period start] [2nd period end]
example: rmscalculator.py test.wav 1 5 11 15 -
Calculate total harmonic distortion
usage: thdcalculator.py [file] [fundamental freq] [period start] [period end]
example: rmscalculator.py test.wav 200 1 5
[Note]
- Only works for 16bit audio file format. Need changes to support other formats.
- Support audio file up to 4 channels
[Requirements]
- install python3
- install pip
- install pydub, numpy, matplotlib