Add timestamps and tokens for .Net's online models. (#690)

This commit is contained in:
Fangjun Kuang
2024-03-23 18:51:56 +08:00
committed by GitHub
parent e6da2c5556
commit 1952772654
26 changed files with 135 additions and 73 deletions

View File

@@ -145,6 +145,10 @@ SHERPA_ONNX_API typedef struct SherpaOnnxOnlineRecognizerResult {
const char *const *tokens_arr;
// Pointer to continuous memory which holds timestamps
//
// Caution: If timestamp information is not available, this pointer is NULL.
// Please check whether it is NULL before you access it; otherwise, you would
// get segmentation fault.
float *timestamps;
// The number of tokens/timestamps in above pointer