Edgewise API
    Preparing search index...

    Interface VadOptions

    interface VadOptions {
        minSpeechMs?: number;
        model?: string;
        negativeThreshold?: number;
        onFrame?: (probability: number) => void;
        onMisfire?: () => void;
        onSpeechEnd?: (audio: Float32Array) => void;
        onSpeechStart?: () => void;
        positiveThreshold?: number;
        preSpeechPadMs?: number;
        redemptionMs?: number;
    }
    Index
    minSpeechMs?: number

    Shortest utterance kept, in ms. Default 250.

    model?: string

    VAD model. Default 'vad:default'.

    negativeThreshold?: number

    Probability below which a frame counts as silence. Default 0.35.

    onFrame?: (probability: number) => void

    Called for every 32 ms frame with the speech probability, 0 to 1.

    onMisfire?: () => void

    Called when speech started but was too short to count (a cough, a click).

    onSpeechEnd?: (audio: Float32Array) => void

    Called when an utterance ends, with its audio (16 kHz).

    onSpeechStart?: () => void

    Called the moment speech starts, before the utterance is complete. Use it to interrupt playback.

    positiveThreshold?: number

    Probability above which a frame counts as speech. Default 0.5.

    preSpeechPadMs?: number

    Audio kept before speech starts, in ms. Default 300.

    redemptionMs?: number

    Silence that ends an utterance, in ms. Default 600.