pub struct WhisperStreamPcmConfig {
pub step_ms: i32,
pub length_ms: i32,
pub keep_ms: i32,
pub use_vad: bool,
pub vad_thold: f32,
pub freq_thold: f32,
pub no_context: bool,
pub vad_probe_ms: i32,
pub vad_silence_ms: i32,
pub vad_pre_roll_ms: i32,
}Expand description
Configuration for WhisperStreamPcm — maps to whisper_params streaming subset.
Fields§
§step_ms: i32Fixed-step chunk size in ms (non-VAD mode).
length_ms: i32Max audio length per inference in ms.
keep_ms: i32Overlap to retain from previous step in ms.
use_vad: boolEnable VAD-driven segmentation.
vad_thold: f32VAD threshold (both simple & Silero).
freq_thold: f32High-pass frequency cutoff for simple VAD.
no_context: boolIf true, don’t carry prompt tokens across inference boundaries.
vad_probe_ms: i32VAD probe chunk size in ms.
vad_silence_ms: i32Silence duration to end a segment in ms.
vad_pre_roll_ms: i32Audio prepended before VAD trigger in ms.
Trait Implementations§
Source§impl Clone for WhisperStreamPcmConfig
impl Clone for WhisperStreamPcmConfig
Source§fn clone(&self) -> WhisperStreamPcmConfig
fn clone(&self) -> WhisperStreamPcmConfig
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 WhisperStreamPcmConfig
impl Debug for WhisperStreamPcmConfig
Auto Trait Implementations§
impl Freeze for WhisperStreamPcmConfig
impl RefUnwindSafe for WhisperStreamPcmConfig
impl Send for WhisperStreamPcmConfig
impl Sync for WhisperStreamPcmConfig
impl Unpin for WhisperStreamPcmConfig
impl UnwindSafe for WhisperStreamPcmConfig
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