Add C++ runtime for MeloTTS (#1138)

This commit is contained in:
Fangjun Kuang
2024-07-16 15:55:02 +08:00
committed by GitHub
parent 95485411fa
commit 960eb7529e
51 changed files with 693 additions and 156 deletions

View File

@@ -21,6 +21,7 @@ struct OfflineTtsVitsModelMetaData {
bool is_piper = false;
bool is_coqui = false;
bool is_icefall = false;
bool is_melo_tts = false;
// for Chinese TTS models from
// https://github.com/Plachtaa/VITS-fast-fine-tuning
@@ -33,6 +34,10 @@ struct OfflineTtsVitsModelMetaData {
int32_t use_eos_bos = 0;
int32_t pad_id = 0;
// for melo tts
int32_t speaker_id = 0;
int32_t version = 0;
std::string punctuations;
std::string language;
std::string voice;