From d3588cfb31089b1a1a7efd5df210b87929c8375c Mon Sep 17 00:00:00 2001 From: peah Date: Tue, 4 Jul 2017 01:54:37 -0700 Subject: [PATCH] Improved low-level echo handling in echo canceller 3 This CL addresses the issue of echo leakage of low level echoes by making the echo canceller more restrictive for that scenario. BUG=webrtc:7930 Review-Url: https://codereview.webrtc.org/2969943002 Cr-Commit-Position: refs/heads/master@{#18884} --- webrtc/modules/audio_processing/aec3/suppression_gain.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/audio_processing/aec3/suppression_gain.cc b/webrtc/modules/audio_processing/aec3/suppression_gain.cc index 7455d29e16..af1e718607 100644 --- a/webrtc/modules/audio_processing/aec3/suppression_gain.cc +++ b/webrtc/modules/audio_processing/aec3/suppression_gain.cc @@ -158,7 +158,7 @@ void GainToNoAudibleEcho( std::array* gain) { constexpr float kEchoMaskingMargin = 1.f / 100.f; const float nearend_masking_margin = - low_noise_render ? 2.f : (saturated_echo ? 0.001f : 0.01f); + low_noise_render ? 0.1f : (saturated_echo ? 0.001f : 0.01f); for (size_t k = 0; k < gain->size(); ++k) { RTC_DCHECK_LE(0.f, nearend_masking_margin * nearend[k]);