Added further tuning of AEC3

TBR=henrik.lundin@webrtc.org
BUG=webrtc:6018

Review-Url: https://codereview.webrtc.org/2720973005
Cr-Commit-Position: refs/heads/master@{#16928}
This commit is contained in:
peah
2017-02-28 22:07:05 -08:00
committed by Commit bot
parent 590ba0e6d9
commit 999cf2bd7c
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ void RecentMaximum(const FftBuffer& X_buffer,
}
}
constexpr float kHInitial = 100.f;
constexpr float kHInitial = 10.f;
constexpr int kUpdateCounterInitial = 300;
} // namespace

View File

@ -29,7 +29,7 @@ void InfiniteErlPowerEstimate(
size_t blocks_since_last_saturation,
const std::array<float, kFftLengthBy2Plus1>& S2_fallback,
std::array<float, kFftLengthBy2Plus1>* R2) {
if (active_render_blocks > 5 * 250) {
if (active_render_blocks > 20 * 250) {
// After an amount of active render samples for which an echo should have
// been detected in the capture signal if the ERL was not infinite, set the
// residual echo to 0.

View File

@ -139,8 +139,8 @@ void SuppressionFilter::ApplyGain(
// Scale and apply the noise to the signals.
RTC_DCHECK_LT(3, suppression_gain.size());
float high_bands_gain =
*std::min_element(suppression_gain.begin() + 3, suppression_gain.end());
float high_bands_gain = *std::min_element(suppression_gain.begin() + 32,
suppression_gain.end());
float high_bands_noise_scaling =
0.4f * std::max(1.f - high_bands_gain, 0.f);