Update AGC2 tuning
Bug: webrtc:7494
Change-Id: Ifcc5b6c846476ce7d6862fba2cb53e426b5855dc
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/206800
Reviewed-by: Per Ã…hgren <peah@webrtc.org>
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33238}
diff --git a/modules/audio_processing/include/audio_processing.h b/modules/audio_processing/include/audio_processing.h
index d725eed..72f146f 100644
--- a/modules/audio_processing/include/audio_processing.h
+++ b/modules/audio_processing/include/audio_processing.h
@@ -331,16 +331,16 @@
} 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;