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

Configuration for the C++ keyword spotting wrapper. More...

#include <cxx-api.h>

Collaboration diagram for sherpa_onnx::cxx::KeywordSpotterConfig:

Public Attributes

FeatureConfig feat_config
OnlineModelConfig model_config
int32_t max_active_paths = 4
int32_t num_trailing_blanks = 1
float keywords_score = 1.0f
float keywords_threshold = 0.25f
std::string keywords_file
std::string keywords_buf

Detailed Description

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

Member Data Documentation

◆ feat_config

FeatureConfig sherpa_onnx::cxx::KeywordSpotterConfig::feat_config

Feature extraction configuration.

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

◆ keywords_buf

std::string sherpa_onnx::cxx::KeywordSpotterConfig::keywords_buf

In-memory keyword definitions.

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

◆ keywords_file

std::string sherpa_onnx::cxx::KeywordSpotterConfig::keywords_file

Keyword file.

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

◆ keywords_score

float sherpa_onnx::cxx::KeywordSpotterConfig::keywords_score = 1.0f

Keyword score bonus.

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

◆ keywords_threshold

float sherpa_onnx::cxx::KeywordSpotterConfig::keywords_threshold = 0.25f

Detection threshold.

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

◆ max_active_paths

int32_t sherpa_onnx::cxx::KeywordSpotterConfig::max_active_paths = 4

Maximum number of active paths.

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

◆ model_config

OnlineModelConfig sherpa_onnx::cxx::KeywordSpotterConfig::model_config

Streaming acoustic model configuration.

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

◆ num_trailing_blanks

int32_t sherpa_onnx::cxx::KeywordSpotterConfig::num_trailing_blanks = 1

Number of trailing blanks required before finalizing a trigger.

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


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