sherpa_rs_sys

Function SherpaOnnxGetKeywordResult

Source
pub unsafe extern "C" fn SherpaOnnxGetKeywordResult(
    spotter: *mut SherpaOnnxKeywordSpotter,
    stream: *mut SherpaOnnxOnlineStream,
) -> *const SherpaOnnxKeywordResult
Expand description

Get the decoding results so far for an OnlineStream.

@param spotter A pointer returned by SherpaOnnxCreateKeywordSpotter(). @param stream A pointer returned by SherpaOnnxCreateKeywordStream(). @return A pointer containing the result. The user has to invoke SherpaOnnxDestroyKeywordResult() to free the returned pointer to avoid memory leak.