sherpa_rs_sys

Function SherpaOnnxIsKeywordStreamReady

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

Return 1 if there are enough number of feature frames for decoding. Return 0 otherwise.

@param spotter A pointer returned by SherpaOnnxCreateKeywordSpotter @param stream A pointer returned by SherpaOnnxCreateKeywordStream