Skip to main content

Clap detection using your microphone and portaudio.

Project description

A clapper based around the PyAudio frontend for PortAudio.

Status: working


You need portaudio installed, then you can install the latest version pip:

sudo pip install slowclap

It will pull in pyaudio and numpy depenencies.



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



  • Working amplitude clapper
  • Supports command-execution and rate-limiting

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for slowclap, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size slowclap-0.1.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page