SCListener: The Easy Way to Detect iPhone Microphone Sound Levels

On March 3, 2009

PG48_microphone.jpg.jpeg Let’s say you have an app that requires the user blow on the microphone to perform some activity (blow out some candles, scare a virtual creature, or whatever). Instead of getting down and dirty with the complex Audio Queue Services, you can now do things in just a few lines with Stephen Celis’ SCListener.

SCListener is a small class that provides “the bare bones of iPhone microphone impedimenta” to make it a case of one method for “start to listen”, another to get the average “power”, another get the peak power, and another to stop listening. Simple as that. The code is open source and available on Github.

Comments are closed.