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

Offline ASR result copied into C++ containers. More...

#include <cxx-api.h>

+ Collaboration diagram for sherpa_onnx::cxx::OfflineRecognizerResult:

Public Attributes

std::string text
 
std::vector< float > timestamps
 
std::vector< std::string > tokens
 
std::string json
 
std::string lang
 
std::string emotion
 
std::string event
 
std::vector< float > durations
 

Detailed Description

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

Member Data Documentation

◆ durations

std::vector<float> sherpa_onnx::cxx::OfflineRecognizerResult::durations

Non-empty only for TDT-style models.

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

◆ emotion

std::string sherpa_onnx::cxx::OfflineRecognizerResult::emotion

Detected emotion when provided by the model.

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

◆ event

std::string sherpa_onnx::cxx::OfflineRecognizerResult::event

Detected event when provided by the model.

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

◆ json

std::string sherpa_onnx::cxx::OfflineRecognizerResult::json

JSON representation of the result.

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

◆ lang

std::string sherpa_onnx::cxx::OfflineRecognizerResult::lang

Detected language when provided by the model.

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

◆ text

std::string sherpa_onnx::cxx::OfflineRecognizerResult::text

Decoded text.

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

◆ timestamps

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

Per-token timestamps in seconds when available.

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

◆ tokens

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

Token sequence.

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


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