Interface AudioGateOptions

Thresholds and timing used to distinguish speech from silence.

interface AudioGateOptions {
    activationRatio?: number;
    deactivationRatio?: number;
    minSilenceDuration?: number;
}

Hierarchy (view full)

Properties

activationRatio?: number

RMS level relative to the silence floor that opens the gate. Defaults to 3.

deactivationRatio?: number

RMS level relative to the silence floor that starts the quiet timer. Defaults to 1.8.

minSilenceDuration?: number

Duration of quiet audio that ends a burst, in milliseconds. Defaults to 500.