Skip to main content

VadProcessor

Trait VadProcessor 

Source
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§

Source

fn is_speech(&self, frame: &AudioFrame) -> bool

Returns true if the frame contains speech.

Source

fn segment(&self, frame: &AudioFrame) -> Vec<SpeechSegment>

Identify speech segments within the frame.

Implementors§