access audio input from mic

All your problems with Audio, Video and Images.

access audio input from mic

Postby monarcharthas89 » Sat Jun 26, 2010 1:08 am

Hi,
I want to build an app that detect noise/sound from mic and compare the sound level to a threshold volume in order to do things for example, vibrate the phone or just simply display something. is there any methods to do such a thing? I am a beginner and I don't know where I should start T_T please help. Thank you.
monarcharthas89
Freshman
Freshman
 
Posts: 5
Joined: Thu Jun 17, 2010 10:44 pm

Top

Re: access audio input from mic

Postby winkle » Sat Jul 10, 2010 9:01 pm

You should use AudioRecord class http://developer.android.com/reference/ ... ecord.html
It gives you raw pcm encoded audio data from microphone. http://en.wikipedia.org/wiki/Pulse-code_modulation
You can analyze pcm stream and perform proper actions.
winkle
Junior Developer
Junior Developer
 
Posts: 10
Joined: Tue Jun 15, 2010 7:54 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 23 guests