Support Ukrainian VITS models from coqui-ai/TTS (#469)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user