sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
sherpa_onnx::cxx::OnlineRecognizerResult Struct Reference

Current streaming ASR result copied into C++ containers. More...

#include <cxx-api.h>

+ Collaboration diagram for sherpa_onnx::cxx::OnlineRecognizerResult:

Public Attributes

std::string text
 
std::vector< std::string > tokens
 
std::vector< float > timestamps
 
std::string json
 

Detailed Description

Definition at line 245 of file cxx-api.h.

Member Data Documentation

◆ json

std::string sherpa_onnx::cxx::OnlineRecognizerResult::json

JSON representation of the result.

Definition at line 253 of file cxx-api.h.

◆ text

std::string sherpa_onnx::cxx::OnlineRecognizerResult::text

Decoded text.

Definition at line 247 of file cxx-api.h.

◆ timestamps

std::vector<float> sherpa_onnx::cxx::OnlineRecognizerResult::timestamps

Per-token timestamps in seconds.

Definition at line 251 of file cxx-api.h.

◆ tokens

std::vector<std::string> sherpa_onnx::cxx::OnlineRecognizerResult::tokens

Token sequence.

Definition at line 249 of file cxx-api.h.


The documentation for this struct was generated from the following file: