Accept input audio samples and compute the features.
The user has to invoke SherpaOnnxDecodeOfflineStream() to run the neural
network and decoding.
Create a display object. Must be freed using SherpaOnnxDestroyDisplay to
avoid memory leak.
@param config Config for the keyword spotter.
@return Return a pointer to the spotter. The user has to invoke
SherpaOnnxDestroyKeywordSpotter() to free it to avoid memory leak.
Create an online stream for accepting wave samples.
Create an online stream for accepting wave samples with the specified hot
words.
@param config Config for the recognizer.
@return Return a pointer to the recognizer. The user has to invoke
Create an offline stream for accepting wave samples.
@param config Config for the recognizer.
@return Return a pointer to the recognizer. The user has to invoke
Create an online stream for accepting wave samples.
Create an online stream for accepting wave samples with the specified hot
words.
Precondition for this function: SherpaOnnxIsKeywordStreamReady() MUST
return 1.
This function is similar to SherpaOnnxDecodeKeywordStream(). It decodes
multiple OnlineStream in parallel.
Decode a list offline streams in parallel.
This function is similar to SherpaOnnxDecodeOnlineStream(). It decodes
multiple OnlineStream in parallel.
Decode an offline stream.
Precondition for this function: SherpaOnnxIsOnlineStreamReady() MUST
return 1.
Destroy the pointer returned by SherpaOnnxGetKeywordResult().
Free a pointer returned by SherpaOnnxCreateKeywordSpotter()
Free a pointer returned by SherpaOnnxCreateOfflineRecognizer()
Destroy the pointer returned by SherpaOnnxGetOfflineStreamResult().
Destroy an offline stream.
Free a pointer returned by SherpaOnnxCreateOnlineRecognizer()
Destroy the pointer returned by SherpaOnnxGetOnlineStreamResult().
Destroy an online stream.
Get the decoding results so far for an OnlineStream.
Get the result of the offline stream.
Return the result as a json string.
The user has to use SherpaOnnxDestroyOfflineStreamResultJson()
to free the returned pointer to avoid memory leak
Get the decoding results so far for an OnlineStream.
Return the result as a json string.
The user has to invoke
SherpaOnnxDestroyOnlineStreamResultJson()
to free the returned pointer to avoid memory leak
Return 1 if there are enough number of feature frames for decoding.
Return 0 otherwise.
Return 1 if there are enough number of feature frames for decoding.
Return 0 otherwise.
@param config Config for the recognizer.
Accept input audio samples and compute the features.
The user has to invoke SherpaOnnxDecodeOnlineStream() to run the neural
network and decoding.
Signal that no more audio samples would be available.
After this call, you cannot call SherpaOnnxOnlineStreamAcceptWaveform() any
more.
Return 1 if an endpoint has been detected.
SherpaOnnxOnlineStreamReset an OnlineStream , which clears the neural
network model state and the state for decoding.
Print the result.