Sound frequency detection

123hal321 picture 123hal321 · Mar 8, 2011 · Viewed 9.8k times · Source

I am currently attempting to create a sound frequency detection application on the iPhone. I have been informed that the algorithm I need for frequency detection of a single frequency is the goertzel algorithm.

However, I am currently struggling to implement this algorithm in C or Objective-C. I am unsure how to retrieve the data I need from the microphone and how to process it in realtime with this algorithm.

Any help / sample code would be greatly appreciated.

Answer

Anne picture Anne · Mar 8, 2011

Sample projects:
- http://developer.apple.com/library/ios/#samplecode/aurioTouch/ (Real-time processing)
- http://developer.apple.com/library/ios/#samplecode/SpeakHere/

The projects above contain everything you need :)