Questions tagged [bluetooth-sco]

Synchronous connection-oriented (SCO) is a type of radio link used for voice data transfer in bluetooth devices.

25 questions
13
votes
2 answers

How to get bluetooth connected devices using BluetoothHeadset API

I want to get list of bluetooth connected devices...not just paired devices. I found BluetoothHeadset API in API level 11 which provides method getConnectedDevices() to get list of connected bluetooth devices. How to get list of bluetooth connected…
Priyank Patel
  • 12,244
  • 8
  • 65
  • 85
13
votes
2 answers

Stream and Play audio from android application to any available Speaker like A2DP,Car speakers etc

From my android application I want to stream audio to any available speaker like A2DP speaker ,docking speakers or car speaker. for doing this I want to use Bluetooth connection and stream over Bluetooth connection... I saw following links On…
Shruti
  • 1
  • 13
  • 55
  • 95
10
votes
0 answers

How to record audio from bluetooth headset (startBluetoothSco() )

I am trying to record audio from bluetooth headset, startBluetoothSco() works different in different versions of android, Recording audio from bluetooth headset on android 4.2, 4.4, and 5.0. using "Nokia BH-310 and 9xxPlantronics" bluetooth…
Shivaraj Patil
  • 8,186
  • 4
  • 29
  • 56
10
votes
3 answers

startVoiceRecognition with bluetooth headset is not working

I need to use bluetooth headset with voice recognition, which almost works fine in some devices like S3, S4 and Samsung Grand. However, when I tried same on Nexus 7, I am getting BluetoothHeadsetServiceJni : Failed to start voice recognition,…
Narayan soni
  • 821
  • 1
  • 10
  • 28
9
votes
0 answers

BluetoothHeadset: why is it necessary to use a timer for calling startVoiceRecognition?

I wrote some codes for detecting the bluetooth headset connection and start audio through the headset. For API 11 and later, one can call startVoiceRecognition when the headset is connected. So a couple of use cases is as follow: Headset was turned…
Hoan Nguyen
  • 18,033
  • 3
  • 50
  • 54
5
votes
1 answer

Android audio slow to start playing over bluetooth sco

I'm developing an app that will play TextToSpeech audio over bluetooth SCO. After connecting to the target bluetooth device (Car stereo), and then instructing the TextToSpeech engine to speak, it takes around 15 seconds for the audio to start…
peterfhannon
  • 1,083
  • 1
  • 8
  • 11
5
votes
5 answers

Bluetooth SCO fails after incoming call

I am trying to send all the audio of an application via SCO. I am able to successfully send the audio, But when an incoming call comes I need to disconnect form SCO so that the application audio will not interfere with the call, The problem is that,…
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157
5
votes
2 answers

How to connect to a remote phone using HFP-bluetooth programmatically in android

Is there a way to pair and connect programmatically to a remote device in Hands-Free-Profile (HFP) mode? So far I am able to just connect to the remote device in the normal way through code. I require to connect to the remote device in the HFP…
SoulRayder
  • 5,072
  • 6
  • 47
  • 93
3
votes
0 answers

Bluetooth connectivity: MODE_IN_CALL vs MODE_IN_COMMUNICATION

I have an application that needs to connect to wireless bluetooth headset to collection RAW audio. MODE_IN_CALL works in some devices and MODE_IN_COMMUNICATION in others. Mic works and I lose audio or vice versa. I am using Nexus 5x and Samsung…
3
votes
0 answers

What is the code flow for using AudioTrack to play audio on device after startBluetoothSco is called?

I am connecting a mobile device with Android OS 4.1 to a Bluetooth device (device class = 1792), using BluetoothSco to route audio (voice). I've setup a BluetoothSocket using createRfcommSocketToServiceRecord successfully. My settings: Using…
3
votes
1 answer

Capture Audio through Bluetooth Headset paired with Android Device

I am trying to capture audio from a Bluetooth Headset paired with an Android Device. Following is the relevant code: Intent in=null; final int bufferSize=BufferElements2Rec*BytesPerElement; final BroadcastReceiver brr=new BroadcastReceiver() { …
user3845389
  • 31
  • 1
  • 2
3
votes
1 answer

Can Bluetooth work in a connectionless (unidirectional) mode?

I've seen several references to this capability being available with Bluetooth 4.0/LE but I'm not sure where to start or how to implement it. To be clear, I mean truly connectionless with only a receiver on one device and a transmitter on another.…
Sam
  • 3,453
  • 1
  • 33
  • 57
3
votes
0 answers

Create a Bluetooth proxy with bluecove and BlueSoleil stack

I have the library http://code.google.com/p/bluecove/ and I have installed BlueSoleil http://www.bluesoleil.com/index.aspx and a compatible bluetooth dongle. I want to create a Java application (running in Windows 7 x64) that would act as a repeater…
Boris Hamanov
  • 3,085
  • 9
  • 35
  • 58
2
votes
0 answers

AudioManager.isBluetoothScoOn returns wrong value

I don’t have much knowledge about Bluetooth. As android documentation lacks details I'm really confused about this. I'm trying to route a webRTC call to a Bluetooth headset. By calling am.startBluetoothSco() I can route the audio to the BT headset…
Sujith S Manjavana
  • 1,417
  • 6
  • 33
  • 60
2
votes
1 answer

How to Text-to-Speech plays on Bluetooth in Android?

I'm a newbie for android. I've created an app that can read Incoming messages using Android Text-To-Speech. Up to now its fine with it. Now user's want It has to play over paired Bluetooth. I'd read all the forums but i didn't get it. Now how i play…
1
2