Commit dbe2de8
Changed files (1)
src/audioProcessor.hpp
@@ -80,7 +80,10 @@ class AGC {
config.fixed_digital.gain_db = 2.0f;
gainController_m = std::make_unique<webrtc::GainController2>(
- config, inputVolumeControllerConfig, sampleRate, 1, false);
+ config, inputVolumeControllerConfig, sampleRate, 1, true);
+ // Enable the internal VAD so GainController2 computes ↗
+ // speech_probability required by the adaptive digital AGC.
+ // When disabled, callers must supply speech_probability to Process().
}
void process(std::vector<int16_t> &frame) {