I want to develop a simple iPhone application which can record the external sounds, and measure the sound wave frequency and power in decibels, any ideas about how to do this?
Asked
Active
Viewed 1,177 times
1 Answers
-3
The section of the documentation labeled Audio & Video might be a good place to start.

KevinDTimm
- 14,226
- 3
- 42
- 60
-
I've googled this, but all what I found was talking about recording and saving sound clips into the iphone device, – Egy_Medrawi Dec 01 '10 at 17:59
-
If you can provide me with helpful links, that would be nice of you. – Egy_Medrawi Dec 01 '10 at 17:59
-
At which point you're going to have to open the files and read the 'raw' data which gives you amplitude/frequency/etc. It will require learning about the file format you decide to write the output in. – KevinDTimm Dec 01 '10 at 18:00
-
If you save in MP3 (for example), you'll have to start here: http://en.wikipedia.org/wiki/MP3 – KevinDTimm Dec 01 '10 at 18:02
-
Thanks for your quick response, It's ok to save the file into mp3 format, then how can I read the sound frequency and the sound power in decibels from the audio file, It would be great if you can give me links with technical links to the API I would use. – Egy_Medrawi Dec 01 '10 at 18:10
-
If the answer is wrong, tell me why it's WRONG. If you don't like the answer, answer it yourself. – KevinDTimm Dec 01 '10 at 19:44
-
Saving to a file, especially a compressed one like mp3, is wasteful though workable. You should be able to just fill a memory buffer with some samples and process it. – Chris Stratton Dec 08 '10 at 21:12
-
Downvoted today, yet nobody owns up to why (after 6+ months as the accepted answer). – KevinDTimm Jun 28 '11 at 19:00
-
3 down votes for an accepted answer - and I can't remove it because it's accepted – KevinDTimm Sep 16 '14 at 12:53