Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sound frequency detection

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.

like image 719
123hal321 Avatar asked Mar 08 '11 10:03

123hal321


People also ask

How do you find the frequency of sound?

Sound wave frequencies can be measured with a frequency counter or with a spectrum analyzer. These devices work by using a microphone to convert the sound wave into an electrical signal. The peaks and valleys of wave are counted to find the frequency.

Is there an app that detects frequency?

Spectrum analyser gives insight into your sounds and deconstructs the audio spectrum, showing the levels of the various frequencies in your audio signal. The built-in sound meter provides high-quality measurement results when measuring ambient noise levels in a multitude of real-life scenarios.

What is audio detector?

The Sound Detector is a small board that combines a microphone and some processing circuitry. It provides not only an audio output, but also a binary indication of the presence of sound, and an analog representation of it's amplitude.

How does Arduino measure sound frequency?

Measure the main frequency of analog captured signal connected to an Arduino and check for noise and mute. Detects frequency from 38 Hz to 9612 Hz and works even on an ATTiny85 with 1 MHz up to 4806 Hz. Signal can be delivered e.g. by a microphone.


2 Answers

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 :)

like image 94
Anne Avatar answered Sep 29 '22 14:09

Anne


https://github.com/irtemed88/PitchDetector Try the Code Repository it does what you need

like image 27
nsdevaraj Avatar answered Sep 29 '22 15:09

nsdevaraj