// Voice Activity Detection — stubbed. // // Both `voice_activity_detector` and `silero-vad-rust` pin ort 2.0.0-rc.10 // which conflicts with transcribe-rs requiring ort 2.0.0-rc.12. // When the ort ecosystem aligns (likely at 2.0.0 stable), add Silero VAD here. // // For now, all audio is treated as speech. This matches v0.2 behaviour // (no VAD) and doesn't affect core functionality. use kon_core::constants::VAD_SPEECH_THRESHOLD; /// Stub speech detector. Treats all audio as speech. #[derive(Default)] pub struct SpeechDetector { threshold: f64, } impl SpeechDetector { pub fn new() -> Self { Self { threshold: VAD_SPEECH_THRESHOLD, } } /// Always returns true (no VAD filtering until ort conflict resolved). pub fn is_speech(&self, _samples: &[f32]) -> bool { true } pub fn threshold(&self) -> f64 { self.threshold } pub fn reset(&mut self) {} }