Skip to main content

Crate pipecrab_vad_sherpa

Crate pipecrab_vad_sherpa 

Source
Expand description

Sherpa ONNX’s Silero VAD behind pipecrab’s edge-emitting detector trait.

SherpaVad is a handle to a dedicated actor thread. The actor constructs, exclusively owns, accesses, and drops one sherpa_onnx::VoiceActivityDetector. Audio is accumulated into exact 512-sample Silero windows, and state changes around each window become VadEvent::SpeechStarted and VadEvent::SpeechStopped.

Sherpa’s completed segment audio is discarded. VadStage owns pre-roll and forwards the original shared audio chunks.

Structs§

SherpaVad
A worker-backed Sherpa ONNX Silero voice-activity detector.
SherpaVadConfig
Configuration for SherpaVad.

Enums§

SherpaVadBuildError
Why a Sherpa VAD worker could not be constructed.

Traits§

Backend
The serialized engine operations used by the Sherpa VAD actor.