Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Realtime microphone sound level monitoring

I'm trying to access sound volume data from the microphone in realtime. I've tried AVAudioPlayer but it only monitors sounds from a source like an mp3 and not from a microphone. I've also tried The SpeakHere app but it's proving to be much tougher to understand with all the Objective C++ syntax (i'm a newbie). Is there another class similiar to the one in SpeakHere but written only in Objective C?

like image 692
Manny Avatar asked Jul 20 '09 18:07

Manny


People also ask

How do I monitor my sound level?

Noise is Monitored Using a Sound Level Meter (SLM) Noise is typically measured by adjusting how a human ear responds to sound (A or C weighted responses). A sound level meter (SLM) can measure sound at different frequencies (called octave band analysis) and record sound clips to determine the source of noise pollution.

Can you measure noise levels with a phone?

Apps for both Android and iOS Measure noise at home or in the workplace and calibrate home or professional audio equipment with this free app which includes a noise dosimeter, spectrum analyzer with RTA, FFT and Spectogram, as well as a hearing test.

What is the difference between dBA and dBC?

Decibel measurements made with the A-weighting scale are denoted as dBA; those with the C-weighting scale as dBC. There are other weighting scales to account for the range between A-weighting (soft) and C-weighting (loud), but they are not used much anymore.


2 Answers

sc_listener is deprecated. The correct answer today is to use AVAudioRecorder. This tutorial explains how to use it.


like image 155
Erik B Avatar answered Oct 02 '22 08:10

Erik B


Erik's answer is correct. Here is a reusable implementation using this method as a recognizer/delegate.

https://github.com/picciano/iOS-Audio-Recoginzer

like image 42
picciano Avatar answered Oct 02 '22 08:10

picciano