Skip to main content

whisper_full_params

Struct whisper_full_params 

Source
#[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: f32

Trait Implementations§

Source§

impl Clone for whisper_full_params

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for whisper_full_params

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for whisper_full_params

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.