sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
SherpaOnnxOfflineTtsMatchaModelConfig Struct Reference

Configuration for a Matcha TTS model. More...

#include <c-api.h>

Public Attributes

const char * acoustic_model
const char * vocoder
const char * lexicon
const char * tokens
const char * data_dir
float noise_scale
float length_scale
const char * dict_dir

Detailed Description

Definition at line 2302 of file c-api.h.

Member Data Documentation

◆ acoustic_model

const char* SherpaOnnxOfflineTtsMatchaModelConfig::acoustic_model

Path to the Matcha acoustic model.

Definition at line 2304 of file c-api.h.

◆ data_dir

const char* SherpaOnnxOfflineTtsMatchaModelConfig::data_dir

Path to espeak-ng-data.

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

Definition at line 2317 of file c-api.h.

◆ dict_dir

const char* SherpaOnnxOfflineTtsMatchaModelConfig::dict_dir

Unused legacy field kept for ABI compatibility.

Definition at line 2323 of file c-api.h.

◆ length_scale

float SherpaOnnxOfflineTtsMatchaModelConfig::length_scale

Speech rate scale. Values < 1 are slower; values > 1 are faster.

Definition at line 2321 of file c-api.h.

◆ lexicon

const char* SherpaOnnxOfflineTtsMatchaModelConfig::lexicon

Path to the lexicon file.

Definition at line 2308 of file c-api.h.

◆ noise_scale

float SherpaOnnxOfflineTtsMatchaModelConfig::noise_scale

Matcha noise scale.

Definition at line 2319 of file c-api.h.

◆ tokens

const char* SherpaOnnxOfflineTtsMatchaModelConfig::tokens

Path to the tokens file.

Definition at line 2310 of file c-api.h.

◆ vocoder

const char* SherpaOnnxOfflineTtsMatchaModelConfig::vocoder

Path to the vocoder model, for example ./vocos-22khz-univ.onnx.

Definition at line 2306 of file c-api.h.


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