VadConfig

sealed interface VadConfig

Voice-activity-detection strategy for a realtime session.

In Server mode the provider decides when the user has stopped talking and automatically requests a response. In Manual mode the client decides when to commit the input audio buffer and ask for a response — useful for push-to-talk UIs and deterministic tests.

Inheritors

Types

Link copied to clipboard
data object Manual : VadConfig
Link copied to clipboard
data class Server(val thresholdRms: Double = DEFAULT_THRESHOLD, val prefixPaddingMs: Int = DEFAULT_PREFIX_PADDING_MS, val silenceDurationMs: Int = DEFAULT_SILENCE_DURATION_MS) : VadConfig