Expand description
Earshot is a fast voice activity detection library.
For more details, see VoiceActivityDetector
.
use earshot::{VoiceActivityDetector, VoiceActivityProfile};
let mut vad = VoiceActivityDetector::new(VoiceActivityProfile::VERY_AGGRESSIVE);
while let Some(frame) = stream.next() {
let is_speech_detected = vad.predict_16khz(&frame).unwrap();
}