Hey there! I'm troubleshooting some audio issues r...
# sdk-web
h
Hey there! I'm troubleshooting some audio issues regarding output volume being really low on iOS safari. I found some issues and discussions that makes me believe that setting
webAudioMix: true
could solve it, but I see that at some point the default was true, then it changed to be false due to some issues (mentioned on the PR that disabled it). As I am considering enabling it to try to solve these issues, I would like to learn more details about the issues, caveats, or things that I must be aware of when enabling it. Do anyone have anything to share about it?
r
I looked through a bunch of related threads. Seems like there is a balancing act for compatibility and it was set true to satisfy the most common cases. I did not follow the thread enough to outline what those are. I do see various related noted issues like this one: https://issues.chromium.org/issues/40252911 I see recommendations for it to be set true and false so I think it is safe to try it. This is well outside my area of expertise but that is what I found from a quick scan of many, many threads about it. @polite-kilobyte-67570 may have better information on this topic.
p
yeah, currently it’s not recommended to set the webAudioMix to
true
. I believe the main painpoints with Safari were: • echo cancellation working less reliably as @refined-appointment-81829 mentioned • duplicated audio on some versions If you go down that path it would definitely be recommended to provide your own audiocontext as part of the
webAudioMix
overload and handle the playback lifecycle of this audiocontext yourself as that’s inherently tricky to do from within the SDK (unblocking usually requires a user gesture)
here’s the PR that switched
webAudioMix
to false by default, with some additional fino https://github.com/livekit/client-sdk-js/pull/1159
r
🙏
h
Thank you so much on the additional info!! Specially around the echo cancellation working less reliably. Currently we worked to improve some issues around echoing, and we identified how that is fragile. So, I see how that can make it impossible for the system to cancel echo. I feel that we might be better to tackle this issues from other ways. We already identified one combination of user media constraints that caused this muffled audio, and we will keep monitoring to find the other sources. Thanks for the info!