Interface SilenceDetectorConfig

Configuration for the SilenceDetector.

interface SilenceDetectorConfig {
    significantPauseThresholdMs?: number;
    utteranceEndThresholdMs?: number;
    minSilenceTimeToConsiderAfterSpeech?: number;
    silenceCheckIntervalMs?: number;
}

Properties

significantPauseThresholdMs?: number

Minimum duration of continuous silence (ms) after speech has ended to be considered a "significant pause". This might indicate the user is thinking or expecting a response.

Default

1500 ms
utteranceEndThresholdMs?: number

Maximum duration of continuous silence (ms) after speech has ended before considering the user's utterance fully complete. This should typically be longer than significantPauseThresholdMs.

Default

3000 ms
minSilenceTimeToConsiderAfterSpeech?: number

After VAD signals speech_start, how long (ms) must silence persist before it's considered for significant_pause or utterance_end. This prevents cutting off very short speech segments immediately if followed by silence. Should be less than significantPauseThresholdMs.

Default

500 ms
silenceCheckIntervalMs?: number

Polling interval in milliseconds to check silence duration if no new VAD events occur. This ensures long silences are detected even if VAD remains in a 'no_voice_activity' state.

Default

250 ms