[android-developers] Re: How to redirect audio to bluetooth headset?
Jianwei it should work with android firmware 1.5 and above On May 22, 4:38 am, jianwei wrote: > Sorry for my poor english. May be you didn't understand my purpose. > I'm a application developer for android platform, and i didn't know > much about bluetooth. Our application will play some audioes(audio > format is amr). When bluetooth headset is paired and connected, we > need playing audio by bluetooth headset. Howerver audio is alway > played by phone speaker, not bt headset. My bt headset is HBH-631, > made by SONY ERICSSON, and it's fine when i call phone. Any > suggestions? Very thanks. > > On 5月22日, 上午9时36分, Dave Sparks wrote: > > > > > You asked specifically about Bluetooth SCO before. SCO is an 8KHz mono > > audio channel compressed down to a low bit-rate stream. To get a > > simulation of what it sounds like, try listening to music over a GSM > > circuit. > > > Bluetooth A2DP is a different story. It use a reasonably good > > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > > out of the box. If the user pairs and connects an A2DP headset, there > > is nothing the application has to do - it just works. > > > On May 20, 6:46 pm, jianwei wrote: > > > > Thanks for your responese. > > > Does this mean all audio in thirdparty application can't play in > > > bluetooth headset? > > > > Dave Sparks wrote: > > > > We don't support sending app processor audio over SCO. The audio > > > > quality would be very poor. > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > Hi all, > > > > > I met a problem of bluetooth headset. I want to switch audio playing > > > > > to bluetooth headset when bluetooth headset is paired. I found > > > > > BluetoothDevice in android sources which can controll bluetooth. > > > > > However it is not contained in android.jar. So I used > > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
Dave, thanks very much. I've got it. : ) On 5月23日, 上午2时32分, Dave Sparks wrote: > With an A2DPheadset, all app processor audio can be routed to theheadset. > > I thought I gave a pretty good summary of the differences between SCO > and A2DP. If you need more detail, there is a lot of information > available on the web. > > On May 22, 7:02 am, jianwei wrote: > > > What's SCO? What's A2DP? I'm not clear about that. Did that mean if i > > using A2DPbluetoothheadset, all audioes will auto play by > >bluetoothheadset? And not allbluetoothheadsethardware supports > > A2DP. Does that right? > > > On 5月22日, 上午9时36分, Dave Sparks wrote: > > > > You asked specifically aboutBluetoothSCO before. SCO is an 8KHz mono > > > audio channel compressed down to a low bit-rate stream. To get a > > > simulation of what it sounds like, try listening to music over a GSM > > > circuit. > > > > BluetoothA2DP is a different story. It use a reasonably good > > > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > > > out of the box. If the user pairs and connects an A2DPheadset, there > > > is nothing the application has to do - it just works. > > > > On May 20, 6:46 pm, jianwei wrote: > > > > > Thanks for your responese. > > > > Does this mean all audio in thirdparty application can't play in > > > >bluetoothheadset? > > > > > Dave Sparks wrote: > > > > > We don't support sending app processor audio over SCO. The audio > > > > > quality would be very poor. > > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > > Hi all, > > > > > > I met a problem ofbluetoothheadset. I want to switch audio playing > > > > > > tobluetoothheadsetwhenbluetoothheadsetis paired. I found > > > > > > BluetoothDevice in android sources which can controllbluetooth. > > > > > > However it is not contained in android.jar. So I used > > > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > > > problem has troubled me a long time. I do appreciate your help. > > > > > > Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
With an A2DP headset, all app processor audio can be routed to the headset. I thought I gave a pretty good summary of the differences between SCO and A2DP. If you need more detail, there is a lot of information available on the web. On May 22, 7:02 am, jianwei wrote: > What's SCO? What's A2DP? I'm not clear about that. Did that mean if i > using A2DP bluetooth headset, all audioes will auto play by > bluetooth headset? And not all bluetooth headset hardware supports > A2DP. Does that right? > > On 5月22日, 上午9时36分, Dave Sparks wrote: > > > You asked specifically aboutBluetoothSCO before. SCO is an 8KHz mono > > audio channel compressed down to a low bit-rate stream. To get a > > simulation of what it sounds like, try listening to music over a GSM > > circuit. > > > BluetoothA2DP is a different story. It use a reasonably good > > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > > out of the box. If the user pairs and connects an A2DPheadset, there > > is nothing the application has to do - it just works. > > > On May 20, 6:46 pm, jianwei wrote: > > > > Thanks for your responese. > > > Does this mean all audio in thirdparty application can't play in > > >bluetoothheadset? > > > > Dave Sparks wrote: > > > > We don't support sending app processor audio over SCO. The audio > > > > quality would be very poor. > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > Hi all, > > > > > I met a problem ofbluetoothheadset. I want to switch audio playing > > > > > tobluetoothheadsetwhenbluetoothheadsetis paired. I found > > > > > BluetoothDevice in android sources which can controllbluetooth. > > > > > However it is not contained in android.jar. So I used > > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
I'm pretty sure that headset is SCO only. We don't support routing app processor audio to SCO. On May 22, 2:38 am, jianwei wrote: > Sorry for my poor english. May be you didn't understand my purpose. > I'm a application developer for android platform, and i didn't know > much about bluetooth. Our application will play some audioes(audio > format is amr). When bluetooth headset is paired and connected, we > need playing audio by bluetooth headset. Howerver audio is alway > played by phone speaker, not bt headset. My bt headset is HBH-631, > made by SONY ERICSSON, and it's fine when i call phone. Any > suggestions? Very thanks. > > On 5月22日, 上午9时36分, Dave Sparks wrote: > > > You asked specifically about Bluetooth SCO before. SCO is an 8KHz mono > > audio channel compressed down to a low bit-rate stream. To get a > > simulation of what it sounds like, try listening to music over a GSM > > circuit. > > > Bluetooth A2DP is a different story. It use a reasonably good > > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > > out of the box. If the user pairs and connects an A2DP headset, there > > is nothing the application has to do - it just works. > > > On May 20, 6:46 pm, jianwei wrote: > > > > Thanks for your responese. > > > Does this mean all audio in thirdparty application can't play in > > > bluetooth headset? > > > > Dave Sparks wrote: > > > > We don't support sending app processor audio over SCO. The audio > > > > quality would be very poor. > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > Hi all, > > > > > I met a problem of bluetooth headset. I want to switch audio playing > > > > > to bluetooth headset when bluetooth headset is paired. I found > > > > > BluetoothDevice in android sources which can controll bluetooth. > > > > > However it is not contained in android.jar. So I used > > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
What's SCO? What's A2DP? I'm not clear about that. Did that mean if i using A2DP bluetooth headset, all audioes will auto play by bluetooth headset? And not all bluetooth headset hardware supports A2DP. Does that right? On 5月22日, 上午9时36分, Dave Sparks wrote: > You asked specifically aboutBluetoothSCO before. SCO is an 8KHz mono > audio channel compressed down to a low bit-rate stream. To get a > simulation of what it sounds like, try listening to music over a GSM > circuit. > > BluetoothA2DP is a different story. It use a reasonably good > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > out of the box. If the user pairs and connects an A2DPheadset, there > is nothing the application has to do - it just works. > > On May 20, 6:46 pm, jianwei wrote: > > > Thanks for your responese. > > Does this mean all audio in thirdparty application can't play in > >bluetoothheadset? > > > Dave Sparks wrote: > > > We don't support sending app processor audio over SCO. The audio > > > quality would be very poor. > > > > On May 20, 6:51 am, jianwei wrote: > > > > Hi all, > > > > I met a problem ofbluetoothheadset. I want to switch audio playing > > > > tobluetoothheadsetwhenbluetoothheadsetis paired. I found > > > > BluetoothDevice in android sources which can controllbluetooth. > > > > However it is not contained in android.jar. So I used > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
Sorry for my poor english. May be you didn't understand my purpose. I'm a application developer for android platform, and i didn't know much about bluetooth. Our application will play some audioes(audio format is amr). When bluetooth headset is paired and connected, we need playing audio by bluetooth headset. Howerver audio is alway played by phone speaker, not bt headset. My bt headset is HBH-631, made by SONY ERICSSON, and it's fine when i call phone. Any suggestions? Very thanks. On 5月22日, 上午9时36分, Dave Sparks wrote: > You asked specifically about Bluetooth SCO before. SCO is an 8KHz mono > audio channel compressed down to a low bit-rate stream. To get a > simulation of what it sounds like, try listening to music over a GSM > circuit. > > Bluetooth A2DP is a different story. It use a reasonably good > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > out of the box. If the user pairs and connects an A2DP headset, there > is nothing the application has to do - it just works. > > On May 20, 6:46 pm, jianwei wrote: > > > Thanks for your responese. > > Does this mean all audio in thirdparty application can't play in > > bluetooth headset? > > > Dave Sparks wrote: > > > We don't support sending app processor audio over SCO. The audio > > > quality would be very poor. > > > > On May 20, 6:51 am, jianwei wrote: > > > > Hi all, > > > > I met a problem of bluetooth headset. I want to switch audio playing > > > > to bluetooth headset when bluetooth headset is paired. I found > > > > BluetoothDevice in android sources which can controll bluetooth. > > > > However it is not contained in android.jar. So I used > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
Hello, In the same direction as the previous problem, i'd like to direct voice (during a conversation) either to the ear piece when the phone is vertical or to the speakers when the phone is horizontal. I'm using the accelerometer which is working well when i only asks to find the position of the phone but when in the program i'm adding the differents orders with the function setRouting (toure ear piece, route speakers) i have the famous message "stop unexpectedly" I have forgotten to add useful permissions Thanks in advance. On May 22, 3:36 am, Dave Sparks wrote: > You asked specifically about Bluetooth SCO before. SCO is an 8KHz mono > audio channel compressed down to a low bit-rate stream. To get a > simulation of what it sounds like, try listening to music over a GSM > circuit. > > Bluetooth A2DP is a different story. It use a reasonably good > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > out of the box. If the user pairs and connects an A2DP headset, there > is nothing the application has to do - it just works. > > On May 20, 6:46 pm, jianwei wrote: > > > Thanks for your responese. > > Does this mean all audio in thirdparty application can't play in > > bluetooth headset? > > > Dave Sparks wrote: > > > We don't support sending app processor audio over SCO. The audio > > > quality would be very poor. > > > > On May 20, 6:51 am, jianwei wrote: > > > > Hi all, > > > > I met a problem of bluetooth headset. I want to switch audio playing > > > > to bluetooth headset when bluetooth headset is paired. I found > > > > BluetoothDevice in android sources which can controll bluetooth. > > > > However it is not contained in android.jar. So I used > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
You asked specifically about Bluetooth SCO before. SCO is an 8KHz mono audio channel compressed down to a low bit-rate stream. To get a simulation of what it sounds like, try listening to music over a GSM circuit. Bluetooth A2DP is a different story. It use a reasonably good perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP out of the box. If the user pairs and connects an A2DP headset, there is nothing the application has to do - it just works. On May 20, 6:46 pm, jianwei wrote: > Thanks for your responese. > Does this mean all audio in thirdparty application can't play in > bluetooth headset? > > Dave Sparks wrote: > > We don't support sending app processor audio over SCO. The audio > > quality would be very poor. > > > On May 20, 6:51 am, jianwei wrote: > > > Hi all, > > > I met a problem of bluetooth headset. I want to switch audio playing > > > to bluetooth headset when bluetooth headset is paired. I found > > > BluetoothDevice in android sources which can controll bluetooth. > > > However it is not contained in android.jar. So I used > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
Hi, I can tell you that using JF1.5, the paired stereo headset receive audio from any sound being played on the G1, i.e. any music player application output sound automatically to the bluetooth headset. I don't think you need to do anything to make it work. However, AVRCP only works if you implement the feature in the apk, at the moment, only the default music player can be controlled via bluetooth AVRCP. I assume the rest of the apks have not implement AVRCP controls yet. Cheers Eric On May 21, 11:46 am, jianwei wrote: > Thanks for your responese. > Does this mean all audio in thirdparty application can't play in > bluetooth headset? > > Dave Sparks wrote: > > We don't support sending app processor audio over SCO. The audio > > quality would be very poor. > > > On May 20, 6:51 am, jianwei wrote: > > > Hi all, > > > I met a problem of bluetooth headset. I want to switch audio playing > > > to bluetooth headset when bluetooth headset is paired. I found > > > BluetoothDevice in android sources which can controll bluetooth. > > > However it is not contained in android.jar. So I used > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
Or if i want to controll bluetooth headset, i should contain bluetooth package? Dave Sparks wrote: > We don't support sending app processor audio over SCO. The audio > quality would be very poor. > > On May 20, 6:51 am, jianwei wrote: > > Hi all, > > I met a problem of bluetooth headset. I want to switch audio playing > > to bluetooth headset when bluetooth headset is paired. I found > > BluetoothDevice in android sources which can controll bluetooth. > > However it is not contained in android.jar. So I used > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
Thanks for your responese. Does this mean all audio in thirdparty application can't play in bluetooth headset? Dave Sparks wrote: > We don't support sending app processor audio over SCO. The audio > quality would be very poor. > > On May 20, 6:51 am, jianwei wrote: > > Hi all, > > I met a problem of bluetooth headset. I want to switch audio playing > > to bluetooth headset when bluetooth headset is paired. I found > > BluetoothDevice in android sources which can controll bluetooth. > > However it is not contained in android.jar. So I used > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
FM transmitter can sound half decent, especially compared to very low bitrate mono. On Wed, May 20, 2009 at 12:49 PM, schwiz wrote: > > Also, I don't see how it could possibly sound worse than using an fm > trasmitter which sadly is our only option. > > On May 20, 11:44 am, schwiz wrote: > > very poor is still better than nothing at all... > > > > On May 20, 10:30 am, Dave Sparks wrote: > > > > > > > > > We don't support sending app processor audio over SCO. The audio > > > quality would be very poor. > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > > Hi all, > > > > I met a problem of bluetooth headset. I want to switch audio playing > > > > to bluetooth headset when bluetooth headset is paired. I found > > > > BluetoothDevice in android sources which can controll bluetooth. > > > > However it is not contained in android.jar. So I used > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > problem has troubled me a long time. I do appreciate your help. > Thanks > > > --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
Also, I don't see how it could possibly sound worse than using an fm trasmitter which sadly is our only option. On May 20, 11:44 am, schwiz wrote: > very poor is still better than nothing at all... > > On May 20, 10:30 am, Dave Sparks wrote: > > > > > We don't support sending app processor audio over SCO. The audio > > quality would be very poor. > > > On May 20, 6:51 am, jianwei wrote: > > > > Hi all, > > > I met a problem of bluetooth headset. I want to switch audio playing > > > to bluetooth headset when bluetooth headset is paired. I found > > > BluetoothDevice in android sources which can controll bluetooth. > > > However it is not contained in android.jar. So I used > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
very poor is still better than nothing at all... On May 20, 10:30 am, Dave Sparks wrote: > We don't support sending app processor audio over SCO. The audio > quality would be very poor. > > On May 20, 6:51 am, jianwei wrote: > > > > > Hi all, > > I met a problem of bluetooth headset. I want to switch audio playing > > to bluetooth headset when bluetooth headset is paired. I found > > BluetoothDevice in android sources which can controll bluetooth. > > However it is not contained in android.jar. So I used > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redirect audio to bluetooth headset?
We don't support sending app processor audio over SCO. The audio quality would be very poor. On May 20, 6:51 am, jianwei wrote: > Hi all, > I met a problem of bluetooth headset. I want to switch audio playing > to bluetooth headset when bluetooth headset is paired. I found > BluetoothDevice in android sources which can controll bluetooth. > However it is not contained in android.jar. So I used > AudioManager.setBluetoothScoOn(true), but it still can't work. This > problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---