sherpa_rs_sys

Function SherpaOnnxGetOnlineStreamResultAsJson

Source
pub unsafe extern "C" fn SherpaOnnxGetOnlineStreamResultAsJson(
    recognizer: *const SherpaOnnxOnlineRecognizer,
    stream: *const SherpaOnnxOnlineStream,
) -> *const c_char
Expand description

Return the result as a json string. The user has to invoke SherpaOnnxDestroyOnlineStreamResultJson() to free the returned pointer to avoid memory leak