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.
Metadata
Release files for audiotimer 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| audiotimer-0.4.0.tar.gz | 7.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| audiotimer-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / audiotimer-0.4.0.tar.gz
| Download URL | audiotimer-0.4.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
943e395359d77060991306535ac9df88f7da3d2f9369bc3e603f1161137e6e25
|
|
BLAKE2b-256 checksum How to use checksums |
1a9fa36ad78d44703aabe939f64b237bcc9d4832a8b9d8c15fa26500c36b0cfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|
Release files / audiotimer-0.4.0-py3-none-any.whl
| Download URL | audiotimer-0.4.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ef5518500d8e389f18d93c38e5b8ad3ac650276a150623a96a35449dee939a3
|
|
BLAKE2b-256 checksum How to use checksums |
9b4ea595ffab7c8871a8f75c55b79a6ee3cc0083e489f3f438897c00b95ebd04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|
Security for audiotimer 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.