Interface VADResult

Represents the result of VAD processing for an audio frame.

interface VADResult {
    isSpeech: boolean;
    frameEnergy: number;
    currentSpeechThreshold: number;
    currentSilenceThreshold: number;
    confidence?: number;
}

Properties

isSpeech: boolean

Indicates whether speech is currently detected in the frame.

frameEnergy: number

The calculated energy (RMS) of the current audio frame.

currentSpeechThreshold: number

The speech detection threshold used for this frame, adapted from the noise profile.

currentSilenceThreshold: number

The silence detection threshold used for this frame.

confidence?: number

Confidence score (0-1) in the isSpeech detection. Can be basic for now.