Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio leaking from speaker after voice call is disconnected while on bluetooth #593

Closed
thepraveshsinghh opened this issue Apr 5, 2024 · 4 comments
Assignees

Comments

@thepraveshsinghh
Copy link

thepraveshsinghh commented Apr 5, 2024

In my calling app I've been using AudioSwitch for quite sometime. Now I've implemented ConnectionService in the same way described in the quickstart project. However I'm facing audio leaking issue from speaker when a call is disconnected.

Description

When I'm listening songs on my bluetooth earphones and receive an incoming call, as soon as I disconnect the call the song is played from the speaker for a few seconds and it automatically switches back to bluetooth after those few seconds.(this is happening on my Samsung device consistently)

Steps to Reproduce

  1. Play a song on your mobile via bluetooth.
  2. When an incoming call is received, music stops, now pickup the call and disconnect it quickly.
  3. When the call disconnects the song is played via speaker instead of bluetooth and switches back to bluetooth after few seconds.

Expected Behavior

After call disconnection, song should be played via bluetooth.

Actual Behavior

After call disconnection, song is played via speaker for few seconds.

Reproduces How Often

Consistently on my Samsung SMF127G.

Versions

Android version : 11
Twilio Voice SDK version: 6.4.0
Twilio AudioSwitch version:1.1.8

Any kind of help or suggestions are appreciated. Thanks in advance.

@afalls-twilio
Copy link
Contributor

@thepraveshsinghh Thanks for the bug report, this sounds like it may be an issue with AudioSwitch, and particular, the lag the device has when switching from/to SCO. We are currently investigating this.

@thepraveshsinghh
Copy link
Author

@afalls-twilio @ocarevs Do we have any update on this?

@afalls-twilio
Copy link
Contributor

@thepraveshsinghh we are still investigating.. we will report here when we have something to share

@ocarevs
Copy link
Collaborator

ocarevs commented Apr 26, 2024

@thepraveshsinghh We've updated the conection_service app flavour in quickstart in the mentioned PR. AudioSwitch was conflicting with audio focus management and routing when using ConnectionService and thus we removed it.

@ocarevs ocarevs closed this as completed Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants