Support extra languages in multi-lang kokoro tts (#2303)
This commit is contained in:
@@ -17,10 +17,12 @@ void PybindOfflineTtsKokoroModelConfig(py::module *m) {
|
||||
.def(py::init<>())
|
||||
.def(py::init<const std::string &, const std::string &,
|
||||
const std::string &, const std::string &,
|
||||
const std::string &, const std::string &, float>(),
|
||||
const std::string &, const std::string &, float,
|
||||
const std::string &>(),
|
||||
py::arg("model"), py::arg("voices"), py::arg("tokens"),
|
||||
py::arg("lexicon") = "", py::arg("data_dir"),
|
||||
py::arg("dict_dir") = "", py::arg("length_scale") = 1.0)
|
||||
py::arg("dict_dir") = "", py::arg("length_scale") = 1.0,
|
||||
py::arg("lang") = "")
|
||||
.def_readwrite("model", &PyClass::model)
|
||||
.def_readwrite("voices", &PyClass::voices)
|
||||
.def_readwrite("tokens", &PyClass::tokens)
|
||||
@@ -28,6 +30,7 @@ void PybindOfflineTtsKokoroModelConfig(py::module *m) {
|
||||
.def_readwrite("data_dir", &PyClass::data_dir)
|
||||
.def_readwrite("dict_dir", &PyClass::dict_dir)
|
||||
.def_readwrite("length_scale", &PyClass::length_scale)
|
||||
.def_readwrite("lang", &PyClass::lang)
|
||||
.def("__str__", &PyClass::ToString)
|
||||
.def("validate", &PyClass::Validate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user