Add Kotlin API for Matcha-TTS models. (#1668)
This commit is contained in:
@@ -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 = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user