sherpa_rs_sys

Function SherpaOnnxDecodeMultipleOnlineStreams

Source
pub unsafe extern "C" fn SherpaOnnxDecodeMultipleOnlineStreams(
    recognizer: *const SherpaOnnxOnlineRecognizer,
    streams: *mut *const SherpaOnnxOnlineStream,
    n: i32,
)
Expand description

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

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

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