Fix splitting sentences for MeloTTS (#1186)
This commit is contained in:
@@ -103,7 +103,8 @@ class MeloTtsLexicon::Impl {
|
|||||||
this_sentence.tones.insert(this_sentence.tones.end(), ids.tones.begin(),
|
this_sentence.tones.insert(this_sentence.tones.end(), ids.tones.begin(),
|
||||||
ids.tones.end());
|
ids.tones.end());
|
||||||
|
|
||||||
if (w == "." || w == "!" || w == "?" || w == ",") {
|
if (w == "." || w == "!" || w == "?" || w == "," || w == "。" ||
|
||||||
|
w == "!" || w == "?" || w == ",") {
|
||||||
ans.push_back(std::move(this_sentence));
|
ans.push_back(std::move(this_sentence));
|
||||||
this_sentence = {};
|
this_sentence = {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user