diff --git a/webrtc/modules/audio_processing/aec3/power_echo_model.cc b/webrtc/modules/audio_processing/aec3/power_echo_model.cc index 9bdc971b9d..8ad5486e07 100644 --- a/webrtc/modules/audio_processing/aec3/power_echo_model.cc +++ b/webrtc/modules/audio_processing/aec3/power_echo_model.cc @@ -28,7 +28,7 @@ void RecentMaximum(const FftBuffer& X_buffer, } } -constexpr float kHInitial = 100.f; +constexpr float kHInitial = 10.f; constexpr int kUpdateCounterInitial = 300; } // namespace diff --git a/webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc b/webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc index 18a07b2f5a..45d3a5f79b 100644 --- a/webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc +++ b/webrtc/modules/audio_processing/aec3/residual_echo_estimator.cc @@ -29,7 +29,7 @@ void InfiniteErlPowerEstimate( size_t blocks_since_last_saturation, const std::array& S2_fallback, std::array* R2) { - if (active_render_blocks > 5 * 250) { + if (active_render_blocks > 20 * 250) { // After an amount of active render samples for which an echo should have // been detected in the capture signal if the ERL was not infinite, set the // residual echo to 0. diff --git a/webrtc/modules/audio_processing/aec3/suppression_filter.cc b/webrtc/modules/audio_processing/aec3/suppression_filter.cc index 3b830a612e..7f7a8d7d22 100644 --- a/webrtc/modules/audio_processing/aec3/suppression_filter.cc +++ b/webrtc/modules/audio_processing/aec3/suppression_filter.cc @@ -139,8 +139,8 @@ void SuppressionFilter::ApplyGain( // Scale and apply the noise to the signals. RTC_DCHECK_LT(3, suppression_gain.size()); - float high_bands_gain = - *std::min_element(suppression_gain.begin() + 3, suppression_gain.end()); + float high_bands_gain = *std::min_element(suppression_gain.begin() + 32, + suppression_gain.end()); float high_bands_noise_scaling = 0.4f * std::max(1.f - high_bands_gain, 0.f);