clap detection

Hi guys,

can someone give me a hint on “clapping” detection? I would like to fire an event, when i clap.

thank you

If you need only to know when someone claps maybe you can use the sound and analize it, not sure how to do it :oops:

A clap produces an audio spike…so you could just do amplitude detection on the incoming audio samples. However this would trigger for any loud noise.

You could improve this by checking for a short loud noise.

Or you could get fancy and try and do an FFT on the incoming sound, looking for a short, loud noise with a peak in a certain frequency band(s).