useasync_trait::async_trait;/// Trait for pluggable VAD backends.
////// Mirrors Python's `VADAnalyzer` abstract base class.
/// Implement this to swap in WebRTC VAD, energy-based detection, etc.
////// `SileroVadNative` is the default implementation.
#[async_trait]pubtraitVadAnalyzer: Send + Sync {/// Number of PCM frames required per inference call.
/// 512 @ 16 kHz, 256 @ 8 kHz.
fnnum_frames_required(&self)->usize;/// Run inference on one window of PCM audio.
////// `audio` is exactly `num_frames_required() * 2` bytes of i16 LE mono PCM.
/// Returns confidence in range 0.0–1.0.
async fnvoice_confidence(&self, audio:Vec<u8>)->f32;}