step2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user