From 2d66cf9d8d5326029aaac1863acb8ccb9ae91db0 Mon Sep 17 00:00:00 2001 From: Alejandro Luebs Date: Fri, 1 Apr 2016 13:59:38 -0700 Subject: [PATCH] Tweak kDecayRate in the IntelligibilityEnhancer This makes the addaptation of the IntelligibilityEnhancer slower, which makes it take more time to kick in or when the background noise changes drastically. But on the other hand, it reduces the risk of clipping and makes the changing in coloring less noticeable. R=henrik.lundin@webrtc.org, peah@webrtc.org, turaj@webrtc.org Review URL: https://codereview.webrtc.org/1848123002 . Cr-Commit-Position: refs/heads/master@{#12202} --- .../intelligibility/intelligibility_enhancer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc b/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc index c98833e05a..de36b7a8bc 100644 --- a/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc +++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc @@ -34,8 +34,8 @@ const float kLambdaTop = -1e-5f; // search for lamda. const float kVoiceProbabilityThreshold = 0.02f; // Number of chunks after voice activity which is still considered speech. const size_t kSpeechOffsetDelay = 80; -const float kDecayRate = 0.98f; // Power estimation decay rate. -const float kMaxRelativeGainChange = 0.04f; // Maximum relative change in gain. +const float kDecayRate = 0.994f; // Power estimation decay rate. +const float kMaxRelativeGainChange = 0.006f; const float kRho = 0.0004f; // Default production and interpretation SNR. const float kPowerNormalizationFactor = 1.f / (1 << 30);