Refactor kokoro export (#2302)

- generate samples for https://k2-fsa.github.io/sherpa/onnx/tts/all/
- provide int8 model for kokoro v0.19 kokoro-int8-en-v0_19.tar.bz2
This commit is contained in:
Fangjun Kuang
2025-06-18 20:30:10 +08:00
committed by GitHub
parent 3878170991
commit 59d118c256
18 changed files with 494 additions and 215 deletions

View File

@@ -34,7 +34,7 @@ static void PybindOfflineTtsConfig(py::module *m) {
.def(py::init<const OfflineTtsModelConfig &, const std::string &,
const std::string &, int32_t, float>(),
py::arg("model"), py::arg("rule_fsts") = "",
py::arg("rule_fars") = "", py::arg("max_num_sentences") = 2,
py::arg("rule_fars") = "", py::arg("max_num_sentences") = 1,
py::arg("silence_scale") = 0.2)
.def_readwrite("model", &PyClass::model)
.def_readwrite("rule_fsts", &PyClass::rule_fsts)