Replace Android system TTS engine (#508)

This commit is contained in:
Fangjun Kuang
2023-12-31 23:02:35 +08:00
committed by GitHub
parent e475e750ac
commit d7e10bb3f8
57 changed files with 1488 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ void PybindOfflineTts(py::module *m) {
.def(py::init<const OfflineTtsConfig &>(), py::arg("config"),
py::call_guard<py::gil_scoped_release>())
.def_property_readonly("sample_rate", &PyClass::SampleRate)
.def_property_readonly("num_speakers", &PyClass::NumSpeakers)
.def(
"generate",
[](const PyClass &self, const std::string &text, int64_t sid,