sherpa_rs_sys

Function SherpaOnnxDecodeMultipleKeywordStreams

Source
pub unsafe extern "C" fn SherpaOnnxDecodeMultipleKeywordStreams(
    spotter: *mut SherpaOnnxKeywordSpotter,
    streams: *mut *mut SherpaOnnxOnlineStream,
    n: i32,
)
Expand description

This function is similar to SherpaOnnxDecodeKeywordStream(). It decodes multiple OnlineStream in parallel.

Caution: The caller has to ensure each OnlineStream is ready, i.e., SherpaOnnxIsKeywordStreamReady() for that stream should return 1.

@param spotter A pointer returned by SherpaOnnxCreateKeywordSpotter() @param streams A pointer array containing pointers returned by SherpaOnnxCreateKeywordStream() @param n Number of elements in the given streams array.