Skip to main content

A clap detector that can detect claps in patterns of single, double, etc.

Project description

Clap Detection System

Overview

This project implements a clap detection system using an a mic or raw audio data as input. It can detect calp patterns including single and double claps.

Features

  • Clap pattern detection.
  • Dynamic threshold adjustment for robust clap detection.
  • Bandpass filtering to focus on clap frequencies.
  • Audio recording and saving capabilities.

Requirements

  • Python3
  • PyAudio
  • NumPy
  • SciPy

Installation

  1. Install the required Python packages:

    pip install pyaudio numpy scipy
    
  2. Clone the repository:

    git clone https://github.com/TzurSoffer/clapDetection/
    cd clapDetection
    
  3. Run the clap detection script:

    python clapDetector.py
    

Configuration

  • Adjust parameters in the ClapDetector class constructor to fine-tune the clap detection system.

Usage

  1. Run the script using bash python clapDetector.py.

  2. The system will continuously monitor audio input and detect claps.

Troubleshooting

  • If there are issues with audio input, check the device index in the ClapDetector constructor.

  • Adjust the bandpass filter parameters for better clap detection in different environments.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

clap-detector-2.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

clap_detector-2.0.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page