Smoothed the application of the NLP gain in AEC3
This CL adds a smooth rampup of the NLP gain in AEC3.
Bug: webrtc:8361
Change-Id: I49aa75904751ffe9150db1572271fe7a26232449
Reviewed-on: https://webrtc-review.googlesource.com/7740
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20213}
diff --git a/modules/audio_processing/include/audio_processing.h b/modules/audio_processing/include/audio_processing.h
index 9d2efb2..3fa2389 100644
--- a/modules/audio_processing/include/audio_processing.h
+++ b/modules/audio_processing/include/audio_processing.h
@@ -290,13 +290,15 @@
} ep_strength;
struct Mask {
- float m1 = 0.01f;
- float m2 = 0.001f;
- float m3 = 0.02f; // Do not change.
- float m4 = 0.3f;
- float m5 = 0.3f;
- float m6 = 0.0001f;
+ float m1 = 0.0001f;
+ float m2 = 0.0001f;
+ float m3 = 0.0001f;
+ float m4 = 0.1f;
+ float m5 = 0.1f;
+ float m6 = 0.00001f;
float m7 = 0.01f;
+ float m8 = 0.0001f;
+ float m9 = 0.0001f;
} gain_mask;
struct EchoAudibility {
@@ -320,12 +322,12 @@
float min_dec;
};
- GainChanges low_noise = {8.f, 10.f, 2.f, 4.f, 4.f, 4.f};
- GainChanges normal = {4.f, 10.f, 1.5f, 4.f, 2.f, 4.f};
+ GainChanges low_noise = {1.5f, 1.5f, 1.2f, 1.2f, 1.1f, 1.1f};
+ GainChanges normal = {1.5f, 1.5f, 1.2f, 1.2f, 1.1f, 1.1f};
GainChanges saturation = {1.2f, 1.2f, 1.5f, 1.5f, 1.f, 1.f};
GainChanges nonlinear = {1.5f, 1.5f, 1.2f, 1.2f, 1.1f, 1.1f};
- float floor_first_increase = 0.001f;
+ float floor_first_increase = 0.0001f;
} gain_updates;
} param;
bool enabled = false;