#[repr(C)]pub struct SherpaOnnxOfflineRecognizerResult {
pub text: *const c_char,
pub timestamps: *mut f32,
pub count: i32,
pub tokens: *const c_char,
pub tokens_arr: *const *const c_char,
pub json: *const c_char,
pub lang: *const c_char,
pub emotion: *const c_char,
pub event: *const c_char,
}
Fields§
§text: *const c_char
§timestamps: *mut f32
§count: i32
§tokens: *const c_char
§tokens_arr: *const *const c_char
§json: *const c_char
Return a json string.
The returned string contains: { “text”: “The recognition result”, “tokens”: [x, x, x], “timestamps”: [x, x, x], “segment”: x, “start_time”: x, “is_final”: true|false }
lang: *const c_char
§emotion: *const c_char
§event: *const c_char
Trait Implementations§
Source§impl Clone for SherpaOnnxOfflineRecognizerResult
impl Clone for SherpaOnnxOfflineRecognizerResult
Source§fn clone(&self) -> SherpaOnnxOfflineRecognizerResult
fn clone(&self) -> SherpaOnnxOfflineRecognizerResult
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 SherpaOnnxOfflineRecognizerResult
Auto Trait Implementations§
impl Freeze for SherpaOnnxOfflineRecognizerResult
impl RefUnwindSafe for SherpaOnnxOfflineRecognizerResult
impl !Send for SherpaOnnxOfflineRecognizerResult
impl !Sync for SherpaOnnxOfflineRecognizerResult
impl Unpin for SherpaOnnxOfflineRecognizerResult
impl UnwindSafe for SherpaOnnxOfflineRecognizerResult
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