Incremental recognition result for a streaming ASR stream.
More...
#include <c-api.h>
All pointers in this struct are owned by the result object returned from SherpaOnnxGetOnlineStreamResult() and become invalid after SherpaOnnxDestroyOnlineRecognizerResult() is called.
Definition at line 391 of file c-api.h.
◆ count
| int32_t SherpaOnnxOnlineRecognizerResult::count |
Number of entries in tokens_arr and, when available, timestamps.
Definition at line 415 of file c-api.h.
◆ json
| const char* SherpaOnnxOnlineRecognizerResult::json |
JSON serialization of the result.
Definition at line 418 of file c-api.h.
◆ text
| const char* SherpaOnnxOnlineRecognizerResult::text |
Recognized text accumulated so far.
Definition at line 393 of file c-api.h.
◆ timestamps
| float* SherpaOnnxOnlineRecognizerResult::timestamps |
Optional token timestamps in seconds.
This field may be NULL when the model does not provide timestamps. When non-NULL, it contains count entries and is parallel to tokens_arr.
Definition at line 412 of file c-api.h.
◆ tokens
| const char* SherpaOnnxOnlineRecognizerResult::tokens |
Contiguous memory block containing token strings separated by '\0'.
Use tokens_arr for convenient indexed access.
Definition at line 400 of file c-api.h.
◆ tokens_arr
| const char* const* SherpaOnnxOnlineRecognizerResult::tokens_arr |
Array of count pointers into tokens.
Definition at line 403 of file c-api.h.
The documentation for this struct was generated from the following file: