pub struct WhisperStreamConfig {
pub step_ms: i32,
pub length_ms: i32,
pub keep_ms: i32,
pub vad_thold: f32,
pub freq_thold: f32,
pub no_context: bool,
}Expand description
Streaming config — maps to stream.cpp’s whisper_params (streaming subset).
Fields§
§step_ms: i32Audio step size in ms. Set <= 0 for VAD mode.
length_ms: i32Audio length per inference in ms.
keep_ms: i32Audio to keep from previous step in ms.
vad_thold: f32VAD energy threshold.
freq_thold: f32High-pass frequency cutoff for VAD.
no_context: boolIf true, don’t carry prompt tokens across boundaries.
Trait Implementations§
Source§impl Clone for WhisperStreamConfig
impl Clone for WhisperStreamConfig
Source§fn clone(&self) -> WhisperStreamConfig
fn clone(&self) -> WhisperStreamConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WhisperStreamConfig
impl Debug for WhisperStreamConfig
Auto Trait Implementations§
impl Freeze for WhisperStreamConfig
impl RefUnwindSafe for WhisperStreamConfig
impl Send for WhisperStreamConfig
impl Sync for WhisperStreamConfig
impl Unpin for WhisperStreamConfig
impl UnwindSafe for WhisperStreamConfig
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