24/7 program that starts recording when a piano is playing.
sudo apt install portaudio19-dev
pip install -r requirements.txt
To find the index of the desired input device, run
python list_devices.py
In listen.py
, set DEVICE_INDEX
to the desired input device index. Then to start listening for recordings, run
python listen.py
To stop listening for recordings, simply kill the script.