5

All app audios mp3 and .wav files are playing well on bluetooth speaker. But when I place an outgoing call using twilio, the voice call cannot hear on bluetooth speaker.

  • Might that be because the call with Twilio is deemed to be a phone call that needs a speaker and a microphone and your bluetooth speaker is just a speaker? – philnash Oct 10 '18 at 05:50
  • I am using anker bluetooth speaker which having microphone also and works as a google assistant – Dipali Jawale Oct 11 '18 at 07:24
  • Are you able to use the speaker when making a regular phone call too? – philnash Oct 11 '18 at 21:52
  • Yes, speaker gets disable only while twilio calling – Dipali Jawale Oct 12 '18 at 06:54
  • I spoke to one of the engineers on the Android team and they said that this isn't something that has been tested. But it would be best to look into using the audio manager to push the audio to the speaker. [This question might help](https://stackoverflow.com/questions/29969030/android-force-audio-routing). – philnash Oct 21 '18 at 23:06
  • Are you using a custom ROM? Does the bluetooth speaker work when you make a standard phone call with your SIM? – Hack5 Jun 26 '20 at 08:20
  • 1
    Not sure but this https://github.com/twilio/audioswitch might help you if you have not tried yet. Also, make sure that is set. Also, https://github.com/twilio/voice-quickstart-android/issues/203 this might help you. I will try to reproduce if I can. Thanks. – moyeen52 Jul 02 '20 at 17:40

1 Answers1

0

My App is now switching to Bluetooth speaker I have used audioswitch. And with this also used audioManager.setBluetoothScoOn(true); and its working fine.