[android-developers] Re: Routing audio input to bluetooth headset
Any help ?
On Aug 9, 2:51 pm, Anzi <anji...@gmail.com> wrote:
> Hi,
>
> With the given APIs i am not able route the audio to bluetooth sco
> headset. Can you please figure what is missing in code.
>
> Note that Bluetooth headset is paired and connected before executing
> the following code.
>
> AudioManager am = (AudioManager) getSystemService(AUDIO_SERVICE);
> am.setMode(AudioManager.MODE_IN_CALL);
> am.setBluetoothScoOn(true);
>
> audioTrack.play();
> audioTrack.write(buffer, 0, bufferlength);
>
> After running the above code, I am still getting voice in handset but
> not from Bluetooth headset.
>
> Thanks in advance.
>
> Regards,Anzi
>
> On Jul 23, 7:07 pm, Garima <garimasrivastava.gar...@gmail.com> wrote:
>
>
>
> > Thanks a lot. That worked.
>
> > On Jul 22, 8:40 pm, Phil <pds...@gmail.com> wrote:
>
> > > In 2.2, check out android.media.AudioManager:
>
> > > startBluetoothSco()
>
> > > and
>
> > > setBluetoothScoOn()
>
> > > One thing to watch out for, however, is:
>
> > > If you pair up a bluetooth headset, and start the SCO connection to
> > > record the bluetooth input, any phone calls you take will now control
> > > the bluetooth connection.
>
> > > On Jul 22, 10:58 am, Garima <garimasrivastava.gar...@gmail.com> wrote:
>
> > > > Is it possible to record an audio (not a phone call) using the
> > > > bluetooth input and not the device microphone? I am able to playback
> > > > whatever am saying through device's mic but am not able to figure out
> > > > how to use the bluetooth mic instead.
> > > > Any assistance would be greatly appreciated.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home