AEC3: Stationary init: fixing a typo when reading the json configuration
Bug: webrtc:10554 Change-Id: I8c05b7c654117359ff294c7ae4604d7913505650 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133181 Reviewed-by: Per Åhgren <peah@webrtc.org> Commit-Queue: Jesus de Vicente Pena <devicentepena@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27726}
This commit is contained in:

committed by
Commit Bot

parent
97df052d47
commit
70a596386d
@ -102,7 +102,7 @@ struct RTC_EXPORT EchoCanceller3Config {
|
||||
float audibility_threshold_lf = 10;
|
||||
float audibility_threshold_mf = 10;
|
||||
float audibility_threshold_hf = 10;
|
||||
bool use_stationary_properties = false;
|
||||
bool use_stationarity_properties = false;
|
||||
bool use_stationarity_properties_at_init = false;
|
||||
} echo_audibility;
|
||||
|
||||
|
@ -218,8 +218,8 @@ void Aec3ConfigFromJsonString(absl::string_view json_string,
|
||||
&cfg.echo_audibility.audibility_threshold_mf);
|
||||
ReadParam(section, "audibility_threshold_hf",
|
||||
&cfg.echo_audibility.audibility_threshold_hf);
|
||||
ReadParam(section, "use_stationary_properties",
|
||||
&cfg.echo_audibility.use_stationary_properties);
|
||||
ReadParam(section, "use_stationarity_properties",
|
||||
&cfg.echo_audibility.use_stationarity_properties);
|
||||
ReadParam(section, "use_stationarity_properties_at_init",
|
||||
&cfg.echo_audibility.use_stationarity_properties_at_init);
|
||||
}
|
||||
@ -430,8 +430,8 @@ std::string Aec3ConfigToJsonString(const EchoCanceller3Config& config) {
|
||||
<< config.echo_audibility.audibility_threshold_mf << ",";
|
||||
ost << "\"audibility_threshold_hf\": "
|
||||
<< config.echo_audibility.audibility_threshold_hf << ",";
|
||||
ost << "\"use_stationary_properties\": "
|
||||
<< (config.echo_audibility.use_stationary_properties ? "true" : "false")
|
||||
ost << "\"use_stationarity_properties\": "
|
||||
<< (config.echo_audibility.use_stationarity_properties ? "true" : "false")
|
||||
<< ",";
|
||||
ost << "\"use_stationarity_properties_at_init\": "
|
||||
<< (config.echo_audibility.use_stationarity_properties_at_init ? "true"
|
||||
|
@ -143,7 +143,7 @@ void AecState::Update(
|
||||
config_.ep_strength.reverb_based_on_render ? ReverbDecay() : 0.f,
|
||||
X2_reverb);
|
||||
|
||||
if (config_.echo_audibility.use_stationary_properties) {
|
||||
if (config_.echo_audibility.use_stationarity_properties) {
|
||||
// Update the echo audibility evaluator.
|
||||
echo_audibility_.Update(render_buffer,
|
||||
render_reverb_.GetReverbContributionPowerSpectrum(),
|
||||
@ -189,7 +189,7 @@ void AecState::Update(
|
||||
|
||||
// Update the reverb estimate.
|
||||
const bool stationary_block =
|
||||
config_.echo_audibility.use_stationary_properties &&
|
||||
config_.echo_audibility.use_stationarity_properties &&
|
||||
echo_audibility_.IsBlockStationary();
|
||||
|
||||
reverb_model_estimator_.Update(filter_analyzer_.GetAdjustedFilter(),
|
||||
|
@ -68,7 +68,7 @@ class AecState {
|
||||
// Returns whether the stationary properties of the signals are used in the
|
||||
// aec.
|
||||
bool UseStationaryProperties() const {
|
||||
return config_.echo_audibility.use_stationary_properties;
|
||||
return config_.echo_audibility.use_stationarity_properties;
|
||||
}
|
||||
|
||||
// Returns the ERLE.
|
||||
|
Reference in New Issue
Block a user