Silero VAD (v5 ONNX) speech-probability analyzer for 16 kHz mono PCM16 audio.
Each analyzer holds its own recurrent state, so create one per audio stream. The ONNX model is loaded once per path and shared between streams.
Audio is consumed in 512-sample (32 ms) frames; leftovers are buffered until the next call. Like the reference implementation, each frame is prefixed with the last 64 samples of the previous frame.
Summary
Functions
Loads (or reuses) the ONNX model and returns a fresh analyzer.
Appends PCM16 audio and returns the speech probability of every complete frame it produced, in order.
Clears recurrent state and buffered audio.
Types
Functions
Loads (or reuses) the ONNX model and returns a fresh analyzer.
Appends PCM16 audio and returns the speech probability of every complete frame it produced, in order.
Clears recurrent state and buffered audio.