Support heteronyms in Chinese TTS (#738)
This commit is contained in:
@@ -32,11 +32,12 @@ static void PybindOfflineTtsConfig(py::module *m) {
|
||||
py::class_<PyClass>(*m, "OfflineTtsConfig")
|
||||
.def(py::init<>())
|
||||
.def(py::init<const OfflineTtsModelConfig &, const std::string &,
|
||||
int32_t>(),
|
||||
const std::string &, int32_t>(),
|
||||
py::arg("model"), py::arg("rule_fsts") = "",
|
||||
py::arg("max_num_sentences") = 2)
|
||||
py::arg("rule_fars") = "", py::arg("max_num_sentences") = 2)
|
||||
.def_readwrite("model", &PyClass::model)
|
||||
.def_readwrite("rule_fsts", &PyClass::rule_fsts)
|
||||
.def_readwrite("rule_fars", &PyClass::rule_fars)
|
||||
.def_readwrite("max_num_sentences", &PyClass::max_num_sentences)
|
||||
.def("validate", &PyClass::Validate)
|
||||
.def("__str__", &PyClass::ToString);
|
||||
|
||||
Reference in New Issue
Block a user