opentok / opentok-android-sdk-samples

Sample applications illustrating best practices using OpenTok Android SDK.
https://tokbox.com/developer/sdks/android/
MIT License
210 stars 169 forks source link

No control over WebRTC audio processing (AEC, NS, AGC) from a custom audio driver #418

Open MatthewWhitmer opened 2 years ago

MatthewWhitmer commented 2 years ago

It appears there is no way to control the software audio processing options in a custom audio driver which OpenTok configures in WebRTC.

Did I miss something in the API where I can do this? Or is this something that could be exposed?

For my use case I would very much like control for enabling/disabling the WebRTC based echo cancellation (as well as NS and AGC) while using a custom audio driver. Not all mic sources on Android support hardware cancellation on the device, and you can't get access to the unprocessed PCM audio data (to simultaneously save a high resolution video with unprocessed audio of the live directed video or broadcast) while hardware echo cancellation is in use.

Thank you!

v-kpheng commented 1 year ago

@Daniel085, @kapilmishr, FYI, it'll be nice if we could add advanced audio controls API to the Android SDK like we did for the Linux SDK.