#[repr(C)]pub struct SherpaOnnxOnlineModelConfig {
pub transducer: SherpaOnnxOnlineTransducerModelConfig,
pub paraformer: SherpaOnnxOnlineParaformerModelConfig,
pub zipformer2_ctc: SherpaOnnxOnlineZipformer2CtcModelConfig,
pub tokens: *const c_char,
pub num_threads: i32,
pub provider: *const c_char,
pub debug: i32,
pub model_type: *const c_char,
pub modeling_unit: *const c_char,
pub bpe_vocab: *const c_char,
pub tokens_buf: *const c_char,
pub tokens_buf_size: i32,
}
Fields§
§transducer: SherpaOnnxOnlineTransducerModelConfig
§paraformer: SherpaOnnxOnlineParaformerModelConfig
§zipformer2_ctc: SherpaOnnxOnlineZipformer2CtcModelConfig
§tokens: *const c_char
§num_threads: i32
§provider: *const c_char
§debug: i32
§model_type: *const c_char
§modeling_unit: *const c_char
§bpe_vocab: *const c_char
§tokens_buf: *const c_char
if non-null, loading the tokens from the buffer instead of from the “tokens” file
tokens_buf_size: i32
byte size excluding the trailing ‘\0’
Trait Implementations§
Source§impl Clone for SherpaOnnxOnlineModelConfig
impl Clone for SherpaOnnxOnlineModelConfig
Source§fn clone(&self) -> SherpaOnnxOnlineModelConfig
fn clone(&self) -> SherpaOnnxOnlineModelConfig
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 moreSource§impl Debug for SherpaOnnxOnlineModelConfig
impl Debug for SherpaOnnxOnlineModelConfig
impl Copy for SherpaOnnxOnlineModelConfig
Auto Trait Implementations§
impl Freeze for SherpaOnnxOnlineModelConfig
impl RefUnwindSafe for SherpaOnnxOnlineModelConfig
impl !Send for SherpaOnnxOnlineModelConfig
impl !Sync for SherpaOnnxOnlineModelConfig
impl Unpin for SherpaOnnxOnlineModelConfig
impl UnwindSafe for SherpaOnnxOnlineModelConfig
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