No project description provided
Project description
Audio timer
Github: https://github.com/ARanch/audiotimer
This small program starts listening for an audio input on the system microphone. When a set audio level threshold is reached, a timer is started. When the audio level is reduced below the threshold, the timer is stopped after a short countdown, and the timespan is logged.
python -m pip install audiotimer
install requirements:
pip install -r requirements.txt
Note: on Mac OS you need Portaudio installed, otherwise you will get the error ERROR: Failed building wheel for PyAudio
. Install it using:
brew install portaudio
before installing requirements.
run using:
python -m audiotimer
see -h flag for run-time options.
Eample usage:
Run using a treshold of "50" and a buffertime of 30 seconds:
python -m audiotimer -t 50 -b 30
Use case
The program is intended to be used as a way of testing the battery life of battery powered loudspeakers. Set the speaker to play a pink noise at a certain level, and leave a laptop with the speaker to listen for when it dies out.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for audiotimer-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ef5518500d8e389f18d93c38e5b8ad3ac650276a150623a96a35449dee939a3 |
|
MD5 | 2d15c39ac6d0f5a12c0e4d520f61a900 |
|
BLAKE2b-256 | 9b4ea595ffab7c8871a8f75c55b79a6ee3cc0083e489f3f438897c00b95ebd04 |