|
sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
|
Snapshot of the current keyword spotting result. More...
#include <c-api.h>
Public Attributes | |
| const char * | keyword |
| const char * | tokens |
| const char *const * | tokens_arr |
| int32_t | count |
| float * | timestamps |
| float | start_time |
| const char * | json |
Free this object with SherpaOnnxDestroyKeywordResult().
| int32_t SherpaOnnxKeywordResult::count |
| const char* SherpaOnnxKeywordResult::json |
JSON representation of the result.
The JSON includes keyword, tokens, timestamps, and start_time.
| const char* SherpaOnnxKeywordResult::keyword |
| float SherpaOnnxKeywordResult::start_time |
| float* SherpaOnnxKeywordResult::timestamps |
Per-token timestamps in seconds.
This array has count elements. Element i corresponds to tokens_arr[i].
| const char* SherpaOnnxKeywordResult::tokens |
| const char* const* SherpaOnnxKeywordResult::tokens_arr |