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

Current keyword spotting result copied into C++ containers. More...

#include <cxx-api.h>

+ Collaboration diagram for sherpa_onnx::cxx::KeywordResult:

Public Attributes

std::string keyword
 
std::vector< std::string > tokens
 
std::vector< float > timestamps
 
float start_time = 0.0f
 
std::string json
 

Detailed Description

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

Member Data Documentation

◆ json

std::string sherpa_onnx::cxx::KeywordResult::json

JSON representation of the result.

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

◆ keyword

std::string sherpa_onnx::cxx::KeywordResult::keyword

Triggered keyword text.

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

◆ start_time

float sherpa_onnx::cxx::KeywordResult::start_time = 0.0f

Segment start time in seconds.

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

◆ timestamps

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

Per-token timestamps in seconds.

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

◆ tokens

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

Decoded token sequence.

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


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