#[repr(C)]pub struct SherpaOnnxOfflineRecognizerConfig {
pub feat_config: SherpaOnnxFeatureConfig,
pub model_config: SherpaOnnxOfflineModelConfig,
pub lm_config: SherpaOnnxOfflineLMConfig,
pub decoding_method: *const c_char,
pub max_active_paths: i32,
pub hotwords_file: *const c_char,
pub hotwords_score: f32,
pub rule_fsts: *const c_char,
pub rule_fars: *const c_char,
pub blank_penalty: f32,
}
Fields§
§feat_config: SherpaOnnxFeatureConfig
§model_config: SherpaOnnxOfflineModelConfig
§lm_config: SherpaOnnxOfflineLMConfig
§decoding_method: *const c_char
§max_active_paths: i32
§hotwords_file: *const c_char
Path to the hotwords.
hotwords_score: f32
Bonus score for each token in hotwords.
rule_fsts: *const c_char
§rule_fars: *const c_char
§blank_penalty: f32
Trait Implementations§
Source§impl Clone for SherpaOnnxOfflineRecognizerConfig
impl Clone for SherpaOnnxOfflineRecognizerConfig
Source§fn clone(&self) -> SherpaOnnxOfflineRecognizerConfig
fn clone(&self) -> SherpaOnnxOfflineRecognizerConfig
Returns a copy 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 moreimpl Copy for SherpaOnnxOfflineRecognizerConfig
Auto Trait Implementations§
impl Freeze for SherpaOnnxOfflineRecognizerConfig
impl RefUnwindSafe for SherpaOnnxOfflineRecognizerConfig
impl !Send for SherpaOnnxOfflineRecognizerConfig
impl !Sync for SherpaOnnxOfflineRecognizerConfig
impl Unpin for SherpaOnnxOfflineRecognizerConfig
impl UnwindSafe for SherpaOnnxOfflineRecognizerConfig
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