pub trait VadProcessor: Send + Sync {
// Required methods
fn is_speech(&self, frame: &AudioFrame) -> bool;
fn segment(&self, frame: &AudioFrame) -> Vec<SpeechSegment>;
}Available on crate feature
audio only.Expand description
Trait for Voice Activity Detection processors.
Used by the voice agent pipeline to gate STT inference to speech-only segments.
Required Methods§
Sourcefn is_speech(&self, frame: &AudioFrame) -> bool
fn is_speech(&self, frame: &AudioFrame) -> bool
Returns true if the frame contains speech.
Sourcefn segment(&self, frame: &AudioFrame) -> Vec<SpeechSegment>
fn segment(&self, frame: &AudioFrame) -> Vec<SpeechSegment>
Identify speech segments within the frame.