#[repr(C)]pub struct whisper_full_params {Show 53 fields
pub strategy: c_int,
pub n_threads: c_int,
pub n_max_text_ctx: c_int,
pub offset_ms: c_int,
pub duration_ms: c_int,
pub translate: bool,
pub no_context: bool,
pub no_timestamps: bool,
pub single_segment: bool,
pub print_special: bool,
pub print_progress: bool,
pub print_realtime: bool,
pub print_timestamps: bool,
pub token_timestamps: bool,
pub thold_pt: f32,
pub thold_ptsum: f32,
pub max_len: c_int,
pub split_on_word: bool,
pub max_tokens: c_int,
pub debug_mode: bool,
pub audio_ctx: c_int,
pub tdrz_enable: bool,
pub suppress_regex: *const c_char,
pub initial_prompt: *const c_char,
pub prompt_tokens: *const whisper_token,
pub prompt_n_tokens: c_int,
pub language: *const c_char,
pub detect_language: bool,
pub suppress_blank: bool,
pub suppress_nst: bool,
pub temperature: f32,
pub max_initial_ts: f32,
pub length_penalty: f32,
pub temperature_inc: f32,
pub entropy_thold: f32,
pub logprob_thold: f32,
pub no_speech_thold: f32,
pub greedy: whisper_full_params__bindgen_ty_1,
pub beam_search: whisper_full_params__bindgen_ty_2,
pub new_segment_callback: Option<unsafe extern "C" fn()>,
pub new_segment_callback_user_data: *mut c_void,
pub progress_callback: Option<unsafe extern "C" fn()>,
pub progress_callback_user_data: *mut c_void,
pub encoder_begin_callback: Option<unsafe extern "C" fn()>,
pub encoder_begin_callback_user_data: *mut c_void,
pub abort_callback: Option<unsafe extern "C" fn()>,
pub abort_callback_user_data: *mut c_void,
pub logits_filter_callback: Option<unsafe extern "C" fn()>,
pub logits_filter_callback_user_data: *mut c_void,
pub grammar_rules: *const *const c_void,
pub n_grammar_rules: usize,
pub i_start_rule: usize,
pub grammar_penalty: f32,
}Fields§
§strategy: c_int§n_threads: c_int§n_max_text_ctx: c_int§offset_ms: c_int§duration_ms: c_int§translate: bool§no_context: bool§no_timestamps: bool§single_segment: bool§print_special: bool§print_progress: bool§print_realtime: bool§print_timestamps: bool§token_timestamps: bool§thold_pt: f32§thold_ptsum: f32§max_len: c_int§split_on_word: bool§max_tokens: c_int§debug_mode: bool§audio_ctx: c_int§tdrz_enable: bool§suppress_regex: *const c_char§initial_prompt: *const c_char§prompt_tokens: *const whisper_token§prompt_n_tokens: c_int§language: *const c_char§detect_language: bool§suppress_blank: bool§suppress_nst: bool§temperature: f32§max_initial_ts: f32§length_penalty: f32§temperature_inc: f32§entropy_thold: f32§logprob_thold: f32§no_speech_thold: f32§greedy: whisper_full_params__bindgen_ty_1§beam_search: whisper_full_params__bindgen_ty_2§new_segment_callback: Option<unsafe extern "C" fn()>§new_segment_callback_user_data: *mut c_void§progress_callback: Option<unsafe extern "C" fn()>§progress_callback_user_data: *mut c_void§encoder_begin_callback: Option<unsafe extern "C" fn()>§encoder_begin_callback_user_data: *mut c_void§abort_callback: Option<unsafe extern "C" fn()>§abort_callback_user_data: *mut c_void§logits_filter_callback: Option<unsafe extern "C" fn()>§logits_filter_callback_user_data: *mut c_void§grammar_rules: *const *const c_void§n_grammar_rules: usize§i_start_rule: usize§grammar_penalty: f32Trait Implementations§
Source§impl Clone for whisper_full_params
impl Clone for whisper_full_params
Source§fn clone(&self) -> whisper_full_params
fn clone(&self) -> whisper_full_params
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 whisper_full_params
impl Debug for whisper_full_params
impl Copy for whisper_full_params
Auto Trait Implementations§
impl Freeze for whisper_full_params
impl RefUnwindSafe for whisper_full_params
impl !Send for whisper_full_params
impl !Sync for whisper_full_params
impl Unpin for whisper_full_params
impl UnwindSafe for whisper_full_params
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