Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 586 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 586 Bytes

pyAudioTest

  • 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]

  1. Only works for 16bit audio file format. Need changes to support other formats.
  2. Support audio file up to 4 channels

[Requirements]

  1. install python3
  2. install pip
  3. install pydub, numpy, matplotlib