pub struct LocalVadDetector { /* private fields */ }Expand description
Local voice activity detector.
Provides voice activity detection using local processing without
external API calls. Uses the voice_activity_detector crate for
speech detection and analysis.
Implementations§
Source§impl LocalVadDetector
impl LocalVadDetector
Sourcepub async fn detect_speech(&self, audio_path: &Path) -> Result<VadResult>
pub async fn detect_speech(&self, audio_path: &Path) -> Result<VadResult>
Detect speech activity in an audio file.
Processes the entire audio file to identify speech segments with timestamps and confidence scores.
§Arguments
audio_path- Path to the audio file to analyze
§Returns
VAD analysis results including speech segments and metadata
§Errors
Returns an error if:
- Audio file cannot be loaded
- VAD processing fails
- Audio format is unsupported
Auto Trait Implementations§
impl Freeze for LocalVadDetector
impl RefUnwindSafe for LocalVadDetector
impl Send for LocalVadDetector
impl Sync for LocalVadDetector
impl Unpin for LocalVadDetector
impl UnwindSafe for LocalVadDetector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more