slowclap
A clapper based around the PyAudio frontend for PortAudio.
Status: working
Installing
You need portaudio installed, then you can install the latest version pip:
sudo pip install slowclap
It will pull in pyaudio and numpy depenencies.
Usage
Command-line
With default settings, run a shell command of your choosing each time a clap is detected:
slowclap --exec='echo Clap'
You might need to tune the threshold to your mic with the -t option.
Python API
Set up a simple detection loop:
import slowclap as sc
feed = sc.MicrophoneFeed()
detector = sc.AmplitudeDetector(feed, threshold=17000000)
for clap in detector:
# do something
print(clap.time)
Changelog
v0.1.0
Working amplitude clapper
Supports command-execution and rate-limiting
Metadata
Release files for slowclap 0.1.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 | Actions |
|---|---|---|---|---|
| slowclap-0.1.0.tar.gz | 3.5 kB | Without provenance | Details for slowclap-0.1.0.tar.gz |
Release files / slowclap-0.1.0.tar.gz
| Download URL | slowclap-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e89af34e444eada5edde2bdb252bfe9d36bbc27888868955de882d8b51cb6ac4
|
|
BLAKE2b-256 checksum How to use checksums |
6ac9e1d3c20d407df3330adc2becd435a49a4f2a254cd7fa24778abaa4295197
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for slowclap 0.1.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.