awslabs / amazon-kinesis-video-streams-webrtc-sdk-android

Android SDK for interfacing with Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
58 stars 37 forks source link

Echo handling #27

Closed prechtelm closed 3 years ago

prechtelm commented 4 years ago

Hi, we experience extreme echoing during calls. How could we handle that problem?

we tried the following without any success: MediaConstraints mediaConstraints = new MediaConstraints(); mediaConstraints.mandatory.add(new MediaConstraints.KeyValuePair("googNoiseSuppression", "true")); mediaConstraints.mandatory.add(new MediaConstraints.KeyValuePair("googEchoCancellation", "true"));

and

WebRtcAudioUtils.setWebRtcBasedAcousticEchoCanceler(true); WebRtcAudioUtils.setWebRtcBasedAutomaticGainControl(true); WebRtcAudioUtils.setWebRtcBasedNoiseSuppressor(true);

Any suggestions?

MushMal commented 3 years ago

KVS owns the signaling portion of the webrtc for Android. Perhaps, Googles webrtc forums might have a better answer for issues related to noice suppression.

Caerbannog commented 3 years ago

For your information, some other projects are calling setWebRtcBasedAcousticEchoCanceler(false) on specific phone models. This fixes an echo on calls where the speaker is ON. See: signalapp/Signal-Android#7635