sherpa_rs_sys

Function SherpaOnnxCreateKeywordStreamWithKeywords

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

Create an online stream for accepting wave samples with the specified hot words.

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