This commit is contained in:
valenti
2026-10-17 15:49:20 +01:00
parent 430997bd2e
commit bfed42c3b3
124 changed files with 5646 additions and 249 deletions
+11
View File
@@ -257,6 +257,17 @@ impl VadDetector {
self.in_speech
}
/// Milliseconds of consecutive silence accumulated *inside* the current
/// utterance — i.e. the length of the micro-pause the user is currently in.
/// Zero while voice is ongoing, and zero outside a confirmed utterance.
///
/// Exposed so the backchannel can cue on a natural pause (between words /
/// phrases) instead of dropping a cue mid-word. Measured in [`WINDOW_MS`]
/// steps, so it is a multiple of 32 ms.
pub fn silence_ms(&self) -> u32 {
self.silence_run_ms
}
/// Feed 16 kHz mono PCM and collect the events it triggers.
///
/// Any number of samples may be pushed; internally they are buffered into