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: Yahoo [Bot] and 5 guests