pub struct WhisperCppOptions {
pub temperature: f32,
pub suppress_blank: bool,
pub no_context: bool,
pub max_tokens: i32,
pub initial_prompt: Option<String>,
}Expand description
Whisper.cpp-specific transcription options
Fields§
§temperature: f32§suppress_blank: bool§no_context: bool§max_tokens: i32§initial_prompt: Option<String>Initial prompt to condition the model (used internally for chunk continuity)
Trait Implementations§
Source§impl Clone for WhisperCppOptions
impl Clone for WhisperCppOptions
Source§fn clone(&self) -> WhisperCppOptions
fn clone(&self) -> WhisperCppOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WhisperCppOptions
impl Debug for WhisperCppOptions
Source§impl Default for WhisperCppOptions
impl Default for WhisperCppOptions
Source§impl<'de> Deserialize<'de> for WhisperCppOptionswhere
WhisperCppOptions: Default,
impl<'de> Deserialize<'de> for WhisperCppOptionswhere
WhisperCppOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WhisperCppOptions
impl RefUnwindSafe for WhisperCppOptions
impl Send for WhisperCppOptions
impl Sync for WhisperCppOptions
impl Unpin for WhisperCppOptions
impl UnsafeUnpin for WhisperCppOptions
impl UnwindSafe for WhisperCppOptions
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