0

I am a newbie on bluetooth & facing a few basic problems. I am currently working on an android voice assistant application, trying to make it work with bluetooth headsets.

If I connect to bluetooth via settings dialog the voice is still captured from Phone's microphone(and not from headset) but when it's connected via HSP profile programatically, voice is captured from Headset.

Can anyone help me understand this behaviour?

0

By default HS/HF profile has only control connection established. Audio connection become active during voice calls and speech recognition. You need to use BluetoothHeadset.startVoiceRecognition/BluetoothHeadset.stopVoiceRecognition and listen to ACTION_AUDIO_STATE_CHANGED intents.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.