From 5a585952dacdc053c82a0a47177bcda3d5cebf89 Mon Sep 17 00:00:00 2001 From: Alessio Bazzica Date: Wed, 10 Feb 2021 14:16:46 +0100 Subject: [PATCH] Update AGC2 tuning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:7494 Change-Id: Ifcc5b6c846476ce7d6862fba2cb53e426b5855dc Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/206800 Reviewed-by: Per Ã…hgren Commit-Queue: Alessio Bazzica Cr-Commit-Position: refs/heads/master@{#33238} --- modules/audio_processing/include/audio_processing.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/audio_processing/include/audio_processing.h b/modules/audio_processing/include/audio_processing.h index d725eed129..72f146f604 100644 --- a/modules/audio_processing/include/audio_processing.h +++ b/modules/audio_processing/include/audio_processing.h @@ -331,16 +331,16 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface { } fixed_digital; struct AdaptiveDigital { bool enabled = false; - float vad_probability_attack = 1.f; + float vad_probability_attack = 0.3f; LevelEstimator level_estimator = kRms; - int level_estimator_adjacent_speech_frames_threshold = 1; + int level_estimator_adjacent_speech_frames_threshold = 6; // TODO(crbug.com/webrtc/7494): Remove `use_saturation_protector`. bool use_saturation_protector = true; float initial_saturation_margin_db = 20.f; - float extra_saturation_margin_db = 2.f; - int gain_applier_adjacent_speech_frames_threshold = 1; + float extra_saturation_margin_db = 5.f; + int gain_applier_adjacent_speech_frames_threshold = 6; float max_gain_change_db_per_second = 3.f; - float max_output_noise_level_dbfs = -50.f; + float max_output_noise_level_dbfs = -55.f; bool sse2_allowed = true; bool avx2_allowed = true; bool neon_allowed = true;