Skip to content

Commit

Permalink
Fix initialize TTS in Python. (#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Dec 31, 2024
1 parent b2ad6f6 commit d353853
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sherpa-onnx/python/csrc/offline-tts-model-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ void PybindOfflineTtsModelConfig(py::module *m) {
.def(py::init<const OfflineTtsVitsModelConfig &,
const OfflineTtsMatchaModelConfig &, int32_t, bool,
const std::string &>(),
py::arg("vits"), py::arg("matcha"), py::arg("num_threads") = 1,
py::arg("debug") = false, py::arg("provider") = "cpu")
py::arg("vits") = OfflineTtsVitsModelConfig{},
py::arg("matcha") = OfflineTtsMatchaModelConfig{},
py::arg("num_threads") = 1, py::arg("debug") = false,
py::arg("provider") = "cpu")
.def_readwrite("vits", &PyClass::vits)
.def_readwrite("matcha", &PyClass::matcha)
.def_readwrite("num_threads", &PyClass::num_threads)
Expand Down

0 comments on commit d353853

Please sign in to comment.