amazon-chime-sdk-android icon indicating copy to clipboard operation
amazon-chime-sdk-android copied to clipboard

Audio output device is not switching to built-in speaker in android 13 One plus 10 Pro and real me 9

Open PatelJa02 opened this issue 1 year ago • 4 comments

Audio output device is not switching to build in speaker Upon selecting the built in speaker in android 13, currently audio output is not changing. AudioVideoFacade instance's active device actually resets to handset even after setting different device by "chooseAudioDevice" method. Below is the link of video: Link: https://stack.rishabhsoft.com/pydio/public/dbfc59fd2ea08d4

As shown in video, the output of audio is set to handset, upon changing the same, it is auto setting to handset.

Steps to reproduce the behavior:

  1. Click speaker icon
  2. Select built in speaker media device
  3. Again click on speaker icon
  4. See still handset is selected

Expected behavior : Built in speaker should be selected and audio should be moved on speaker.

Logs : Please check the below link for logs : https://stack.rishabhsoft.com/pydio/public/1d66414dd47b652

Test environment Info :

  • Device: One plus 10 Pro and real me 9.
  • OS: Android 13
  • Version amazon-chime-sdk: 0.18.3
  • Version amazon-chime-sdk-media: 0.18.3

PatelJa02 avatar Oct 26 '23 11:10 PatelJa02

@PatelJa02 I am also facing the same issue while integrating the Bluetooth device and the built-in speaker. Have you found any solution for this?

pragadeeshNIS avatar Dec 22 '23 04:12 pragadeeshNIS

Hello @pragadeeshNIS ,

I have integrated the connectionservice in chime, So to manage the audio route use below function if you have integrated self managed connection service ConnectionService()#setAudioRoute(route:Int). This will fix the issue.

yanpatel avatar Dec 22 '23 08:12 yanpatel

@PatelJa02 thanks for the support. I will check it out.

pragadeeshNIS avatar Dec 22 '23 10:12 pragadeeshNIS

Thanks for reporting the issue, will look into and post updates. In the meantime, might try @yanpatel's workaround.

linsang21 avatar Jan 02 '24 19:01 linsang21

I am having same issue with tablet, Make: Oukitel Model: RT3 Android: 13 Audio from other sources are not playing in the tablet built in speakers. Does anyone let me know how to fix this.

sumit-s-fltcase avatar Sep 24 '24 03:09 sumit-s-fltcase

I am having same issue with tablet, Make: Oukitel Model: RT3 Android: 13 Audio from other sources are not playing in the tablet built in speakers. Does anyone let me know how to fix this.

If you're using a self-managed ConnectionService, you might be able to resolve this issue by explicitly managing the audio route using the setAudioRoute(route: Int) method.

yanpatel avatar Sep 24 '24 05:09 yanpatel

I am having same issue with tablet, Make: Oukitel Model: RT3 Android: 13 Audio from other sources are not playing in the tablet built in speakers. Does anyone let me know how to fix this.

If you're using a self-managed ConnectionService, you might be able to resolve this issue by explicitly managing the audio route using the setAudioRoute(route: Int) method.

I am not using self managed. I am using the same as provided in sample. Only for this model i am not able to get audio on both speaker as well as headset. Wll this val selected = audioClientController.setRoute(route) is coming as true but still audio is not coming. here route for speaker is going as 2 which is AudioClient.SPK_STREAM_ROUTE_SPEAKER. And for headset is is going as 0 as AudioClient.SPK_STREAM_ROUTE_RECEIVER.

sumit-s-fltcase avatar Sep 24 '24 09:09 sumit-s-fltcase

Do you have the impemetation for your solution setAudioRoute(route: Int)

Fatima1990z avatar Oct 04 '24 11:10 Fatima1990z