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 - Record/capture audio with bluetooth

Record/capture audio with bluetooth

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Record/capture audio with bluetooth

Postby mmenaker » Fri Oct 30, 2009 12:26 am

I'm trying to record audio from bluetooth (SDK 1.6) with no luck. I can recording from the phone microphone with this code:

m_recordingcontrol = new MediaRecorder();
m_recordingcontrol.setAudioSource(MediaRecorder.AudioSource.MIC);
m_recordingcontrol.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
m_recordingcontrol.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
m_recordingcontrol.setOutputFile(m_path);

m_recordingcontrol.prepare();
m_recordingcontrol.start();

However when I pair and connect the phone to a bluetooth headset and try to set the audio source to any of:
4 VOICE_CALL Voice call uplink + downlink audio source
3 VOICE_DOWNLINK Voice call downlink (Rx) audio source
2 VOICE_UPLINK Voice call uplink (Tx) audio source

I get exceptions when I prepare/start.

Has anyone been able to record with this? Or know which one I should be trying to record with (I first assumed VOICE_CALL).

Thanks,
Mike
mmenaker
Freshman
Freshman
 
Posts: 6
Joined: Thu Jun 04, 2009 11:15 pm

Top

Re: Record/capture audio with bluetooth

Postby nsifboqbftum » Sat Oct 05, 2013 5:28 pm

nsifboqbftum
Freshman
Freshman
 
Posts: 6
Joined: Tue Aug 03, 2010 7:50 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests