Basic Usage
VADResult
| Property | Type | Description |
|---|---|---|
hasSpeech | Boolean | Whether speech was detected |
confidence | Float | Detection confidence (0.0-1.0) |
speechStartMs | Long? | Start time of speech segment |
speechEndMs | Long? | End time of speech segment |
frameIndex | Int | Audio frame index |
timestamp | Long | Detection timestamp |
Configure VAD
Customize detection sensitivity:VADConfiguration
| Parameter | Default | Description |
|---|---|---|
threshold | 0.5 | Higher = less sensitive (fewer false positives) |
minSpeechDurationMs | 250 | Ignore speech shorter than this |
minSilenceDurationMs | 300 | Silence needed to end speech |
sampleRate | 16000 | Audio sample rate |
frameSizeMs | 30 | Frame duration for processing |