Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Unified Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc

Issue 1848123002: Tweak kDecayRate in the IntelligibilityEnhancer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
diff --git a/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc b/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
index 04d36545216879d464065a62d773f3abb8d74dbd..334b7714cf2e345efceddfdc4588ba2a09d4698c 100644
--- a/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
+++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
@@ -34,8 +34,7 @@ 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.
peah-webrtc 2016/04/01 04:43:50 I cannot really say that I yet understand the unde
hlundin-webrtc 2016/04/01 08:36:38 Acknowledged.
aluebs-webrtc 2016/04/01 17:33:35 Well, the decay rate of the PSD estimations doesn'
const float kRho = 0.0004f; // Default production and interpretation SNR.
// Returns dot product of vectors |a| and |b| with size |length|.
@@ -78,7 +77,7 @@ IntelligibilityEnhancer::IntelligibilityEnhancer(int sample_rate_hz,
capture_filter_bank_(CreateErbBank(num_noise_bins)),
render_filter_bank_(CreateErbBank(freqs_)),
gains_eq_(bank_size_),
- gain_applier_(freqs_, kMaxRelativeGainChange),
+ gain_applier_(freqs_, 1.f - kDecayRate),
audio_s16_(chunk_length_),
chunks_since_voice_(kSpeechOffsetDelay),
is_speech_(false),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698