Expand description
Fast voice activity detection for 8 kHz and 16 kHz mono audio.
This crate provides three main entry points:
VADfor batch detection over a full buffer.VadStatefulfor streaming detection one frame at a time.FilterBankfor direct access to the underlying 8-band log-energy features.
The detector operates on fixed 32 ms frames:
- 512 samples at 16 kHz
- 256 samples at 8 kHz
§Example
use fast_vad::{VAD, VADModes};
let audio = vec![0.0f32; 16_000];
let vad = VAD::with_mode(16_000, VADModes::Normal)?;
let sample_labels = vad.detect(&audio);
assert_eq!(sample_labels.len(), audio.len());Re-exports§
pub use vad::VadError;pub use vad::detector::VAD;pub use vad::detector::VADModes;pub use vad::detector::VadConfig;pub use vad::detector::VadStateful;pub use vad::filterbank::FilterBank;
Modules§
- vad
- Core Rust implementation modules for detection and feature extraction. Core Rust implementation for feature extraction and voice activity detection.