pub struct WindowConfig {
pub max_window_secs: f32,
pub stride_secs: f32,
pub vad_threshold: f32,
pub min_speech_secs: f32,
}Fields§
§max_window_secs: f32Hard cap on the growing decode buffer; once reached, the chunker emits a window with
cap_hit=true and the consumer must call either Chunker::trim_oldest (continue
the utterance by dropping the oldest ~1.5 s of audio) or Chunker::reset_utterance
(forced EOU). Default 5.0 s — chosen so the autoregressive decoder on tiny.en CPU
stays under stride_secs per window. If a second cap is hit without an intervening
trim/reset, forced_eou=true fires as a safety net (see CLAUDE.md § Live-mic perf
ceiling).
stride_secs: f32How often to re-decode the growing buffer (default 1.0 s).
vad_threshold: f32§min_speech_secs: f32Minimum accumulated speech before the first window of an utterance fires (debounces VAD flicker).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WindowConfig
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnsafeUnpin for WindowConfig
impl UnwindSafe for WindowConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more