Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - access audio input from mic

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 8 guests