sherpa_rs_sys

Function SherpaOnnxCreateKeywordStream

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

Create an online stream for accepting wave samples.

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