ten_vad
Source Location
How It Works
- Incoming LINEAR16 bytes are converted to
int16samples - Samples are processed in fixed 256-sample frames (16 ms each)
- Each frame produces a speech probability score
- Speech onset/offset is tracked with Pipecat-style
start_secsandstop_secsdebounce windows - Same packet emission pattern:
InterruptionPacketstart/end events on speech onset and offset
Parameters
Internally,
start_secs and stop_secs are rounded to TEN VAD’s native 256-sample frames.
Shared Library
TEN VAD does not use an ONNX model. It requires thelibten_vad shared library at both build and runtime.
Docker: The Dockerfile copies the library from the source tree: