#[repr(C)]pub struct SherpaOnnxOnlineTransducerModelConfig {
pub encoder: *const c_char,
pub decoder: *const c_char,
pub joiner: *const c_char,
}
Expand description
Please refer to https://k2-fsa.github.io/sherpa/onnx/pretrained_models/index.html to download pre-trained models. That is, you can find encoder-xxx.onnx decoder-xxx.onnx, joiner-xxx.onnx, and tokens.txt for this struct from there.
Fields§
§encoder: *const c_char
§decoder: *const c_char
§joiner: *const c_char
Trait Implementations§
Source§impl Clone for SherpaOnnxOnlineTransducerModelConfig
impl Clone for SherpaOnnxOnlineTransducerModelConfig
Source§fn clone(&self) -> SherpaOnnxOnlineTransducerModelConfig
fn clone(&self) -> SherpaOnnxOnlineTransducerModelConfig
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 SherpaOnnxOnlineTransducerModelConfig
Auto Trait Implementations§
impl Freeze for SherpaOnnxOnlineTransducerModelConfig
impl RefUnwindSafe for SherpaOnnxOnlineTransducerModelConfig
impl !Send for SherpaOnnxOnlineTransducerModelConfig
impl !Sync for SherpaOnnxOnlineTransducerModelConfig
impl Unpin for SherpaOnnxOnlineTransducerModelConfig
impl UnwindSafe for SherpaOnnxOnlineTransducerModelConfig
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