AGC (Automatic Gain Control) Example

An AGC example that applies the audio processing to the mic input and outputs the result to the speaker.
In this example, we update the gain value only when voice is detected in an input audio frame to prevent amplifying background noises. To detect voice, rnnoise-wasm library is used.

NOTE: This example only supports Chromium-based browsers such as Chrome and Edge.

References

Paper: Design and implementation of a new digital automatic gain control
Rust Implementation: https://github.com/sile/dagc

Output Audio AGC Type


This AGC Settings

Desirable Output RMS (volume level):
Distortion Factor:
VAD Threshold: 0.95

Output Audio RMS (per 10ms frame)