esphome / esphome/feature-requests

Clap detection from some microphone

Open
#795 0 comments 5 reactions 0 assignees View on GitHub
component: media_player
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

It would be super fun to have clap detection, based on ADC from some microphone.

**Please describe your use case for this integration and alternatives you've tried:**

Nowadays we all have AI voice assistants in our pockets, yet it would be sometimes faster to just clap to toggle the lights.
You can make yourself a nice micro with LM358 amplifier/comparator - or just buy one already soldered on pcb.

**Additional context**

The `clap_detector` component could just be a `binary_sensor` component that would analize the grapth from other `sensor` component. It could have fields like `minimum_time_between_claps` or `claps_count_threshold`, and funtions like `on_clap` (it would execute on every single clap even if `claps_count_threshold` wasn't reached

To actually implement the detection - there are many algorithms out there, we just need to pick the right one

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.