Add Kotlin API for Matcha-TTS models. (#1668)

This commit is contained in:
Fangjun Kuang
2024-12-31 19:20:52 +08:00
committed by GitHub
parent 0a43e9c879
commit 3422b9388d
9 changed files with 117 additions and 9 deletions

View File

@@ -155,7 +155,7 @@ class JiebaLexicon::Impl {
this_sentence.insert(this_sentence.end(), ids.begin(), ids.end());
if (w == "" || w == "" || w == "" || w == "") {
if (IsPunct(w)) {
ans.emplace_back(std::move(this_sentence));
this_sentence = {};
}