Within my iPhone application, how would I recognize the noise that a clap makes?
Asked
Active
Viewed 2,062 times
1

Brad Larson
- 170,088
- 45
- 397
- 571
-
2Clap recognition? What is that? – Chuck Dec 28 '10 at 05:48
-
1I want to make iphone app to find missing iphone in a room when I clap 3 times I phone shud detect clap and speaks i m here .. – a25bedc5-3d09-41b8-82fb-ea6c353d75ae Dec 28 '10 at 06:32
-
7user553239: Keep in mind that the user will have to have the foresight to start your application before losing their phone. – Peter Hosey Dec 28 '10 at 08:56
-
2@peter or you could keep it always on, which would eat battery up and kill the phone sooner than you could start clapping. – cregox Jan 06 '11 at 13:17
1 Answers
3
If you're talking about recognizing the sound of a clap, SCListener is a great and easy-to-use class that gives you simple audio levels. Then it's just a question of measuring peaks or even just high values.

Luke
- 7,110
- 6
- 45
- 74
-
2user553239: It's a class of object that listens on the microphone and lets you retrieve the peak and average sound level. A clap will be a high peak that then drops back down to background-noise level. Use of the class is described in the readme at the bottom of the page Luke linked you to. – Peter Hosey Dec 28 '10 at 08:54
-
Thanks a lot Luke and Peter :) I would try to use this in my project. – a25bedc5-3d09-41b8-82fb-ea6c353d75ae Dec 28 '10 at 12:31
-