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
-
Install the required Python packages:
pip install pyaudio numpy scipy
-
Clone the repository:
git clone https://github.com/TzurSoffer/clapDetection/ cd clapDetection
-
Run the clap detection script:
python clapDetector.py
Configuration
- Adjust parameters in the
ClapDetector
class constructor to fine-tune the clap detection system.
Usage
-
Run the script using
bash python clapDetector.py
. -
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
Built Distribution
Hashes for clap_detector-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb4f589ada24a6f8b74e3fa8d86d9c97c0267a49afc8ff8caec364291dd26211 |
|
MD5 | 9aa8c1d823fb22806bc825a5f6112204 |
|
BLAKE2b-256 | 1d6e65119c139f499f1522ecc8bfbd62e17d2a24a0bb8a62c5d1cb793be86635 |