sherpa_rs_sys

Function SherpaOnnxCreateOnlineStream

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

Create an online stream for accepting wave samples.

@param recognizer A pointer returned by SherpaOnnxCreateOnlineRecognizer() @return Return a pointer to an OnlineStream. The user has to invoke SherpaOnnxDestroyOnlineStream() to free it to avoid memory leak.