#[repr(C)]pub struct SherpaOnnxOnlineRecognizerResult {
pub text: *const c_char,
pub tokens: *const c_char,
pub tokens_arr: *const *const c_char,
pub timestamps: *mut f32,
pub count: i32,
pub json: *const c_char,
}
Fields§
§text: *const c_char
§tokens: *const c_char
§tokens_arr: *const *const c_char
§timestamps: *mut f32
§count: i32
§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 }
Trait Implementations§
Source§impl Clone for SherpaOnnxOnlineRecognizerResult
impl Clone for SherpaOnnxOnlineRecognizerResult
Source§fn clone(&self) -> SherpaOnnxOnlineRecognizerResult
fn clone(&self) -> SherpaOnnxOnlineRecognizerResult
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 SherpaOnnxOnlineRecognizerResult
Auto Trait Implementations§
impl Freeze for SherpaOnnxOnlineRecognizerResult
impl RefUnwindSafe for SherpaOnnxOnlineRecognizerResult
impl !Send for SherpaOnnxOnlineRecognizerResult
impl !Sync for SherpaOnnxOnlineRecognizerResult
impl Unpin for SherpaOnnxOnlineRecognizerResult
impl UnwindSafe for SherpaOnnxOnlineRecognizerResult
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