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

Matcha model configuration. More...

#include <cxx-api.h>

Collaboration diagram for sherpa_onnx::cxx::OfflineTtsMatchaModelConfig:

Public Attributes

std::string acoustic_model
std::string vocoder
std::string lexicon
std::string tokens
std::string data_dir
std::string dict_dir
float noise_scale = 0.667
float length_scale = 1.0

Detailed Description

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

Member Data Documentation

◆ acoustic_model

std::string sherpa_onnx::cxx::OfflineTtsMatchaModelConfig::acoustic_model

Acoustic model file.

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

◆ data_dir

std::string sherpa_onnx::cxx::OfflineTtsMatchaModelConfig::data_dir

Data directory such as espeak-ng-data.

Deprecated
Ignored since v2.0.0. Pass pre-phonemized input via GenerationConfig::phoneme_codepoints (or ::tokens) instead.

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

◆ dict_dir

std::string sherpa_onnx::cxx::OfflineTtsMatchaModelConfig::dict_dir

Reserved field. Currently unused by the wrapper.

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

◆ length_scale

float sherpa_onnx::cxx::OfflineTtsMatchaModelConfig::length_scale = 1.0

Length scale. Values < 1 are faster; values > 1 are slower.

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

◆ lexicon

std::string sherpa_onnx::cxx::OfflineTtsMatchaModelConfig::lexicon

Lexicon file.

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

◆ noise_scale

float sherpa_onnx::cxx::OfflineTtsMatchaModelConfig::noise_scale = 0.667

Matcha noise scale.

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

◆ tokens

std::string sherpa_onnx::cxx::OfflineTtsMatchaModelConfig::tokens

Token file.

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

◆ vocoder

std::string sherpa_onnx::cxx::OfflineTtsMatchaModelConfig::vocoder

Vocoder model file.

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


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