#[repr(C)]pub struct SherpaOnnxKeywordSpotterConfig {
pub feat_config: SherpaOnnxFeatureConfig,
pub model_config: SherpaOnnxOnlineModelConfig,
pub max_active_paths: i32,
pub num_trailing_blanks: i32,
pub keywords_score: f32,
pub keywords_threshold: f32,
pub keywords_file: *const c_char,
pub keywords_buf: *const c_char,
pub keywords_buf_size: i32,
}
Fields§
§feat_config: SherpaOnnxFeatureConfig
§model_config: SherpaOnnxOnlineModelConfig
§max_active_paths: i32
§num_trailing_blanks: i32
§keywords_score: f32
§keywords_threshold: f32
§keywords_file: *const c_char
§keywords_buf: *const c_char
if non-null, loading the keywords from the buffer instead of from the keywords_file
keywords_buf_size: i32
byte size excluding the trailing ‘\0’
Trait Implementations§
Source§impl Clone for SherpaOnnxKeywordSpotterConfig
impl Clone for SherpaOnnxKeywordSpotterConfig
Source§fn clone(&self) -> SherpaOnnxKeywordSpotterConfig
fn clone(&self) -> SherpaOnnxKeywordSpotterConfig
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 SherpaOnnxKeywordSpotterConfig
Auto Trait Implementations§
impl Freeze for SherpaOnnxKeywordSpotterConfig
impl RefUnwindSafe for SherpaOnnxKeywordSpotterConfig
impl !Send for SherpaOnnxKeywordSpotterConfig
impl !Sync for SherpaOnnxKeywordSpotterConfig
impl Unpin for SherpaOnnxKeywordSpotterConfig
impl UnwindSafe for SherpaOnnxKeywordSpotterConfig
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