This piece of Python script measures sound level. The script depends on the sd ('sound device'), numpy, CFFI and Portaudio libraries.
- Make sure pip is installed and has all the necessesary tools:
python3 -m pip install setuptools --user
- Install dependencies:
python3 -m pip install cffi --user
brew install portaudio (on Mac OS X)
- Install sounddevice:
python3 -m pip install sounddevice --user