Support Ukrainian VITS models from coqui-ai/TTS (#469)

This commit is contained in:
Fangjun Kuang
2023-12-06 19:37:11 +08:00
committed by GitHub
parent 23cf92daf7
commit d34161413d
9 changed files with 303 additions and 32 deletions

View File

@@ -10,15 +10,14 @@
namespace sherpa_onnx {
// If you are not sure what each field means, please
// have a look of the Python file in the model directory that
// you have downloaded.
struct OfflineTtsVitsModelMetaData {
int32_t sample_rate;
int32_t sample_rate = 0;
int32_t add_blank = 0;
int32_t num_speakers = 0;
std::string punctuations;
std::string language;
std::string voice;
bool is_piper = false;
bool is_coqui = false;
@@ -27,6 +26,12 @@ struct OfflineTtsVitsModelMetaData {
int32_t bos_id = 0;
int32_t eos_id = 0;
int32_t use_eos_bos = 0;
int32_t pad_id = 0;
std::string punctuations;
std::string language;
std::string voice;
std::string frontend; // characters
};
} // namespace sherpa_onnx