Fangjun Kuang
Committed by GitHub

Fix splitting sentences for MeloTTS (#1186)

@@ -103,7 +103,8 @@ class MeloTtsLexicon::Impl { @@ -103,7 +103,8 @@ class MeloTtsLexicon::Impl {
103 this_sentence.tones.insert(this_sentence.tones.end(), ids.tones.begin(), 103 this_sentence.tones.insert(this_sentence.tones.end(), ids.tones.begin(),
104 ids.tones.end()); 104 ids.tones.end());
105 105
106 - if (w == "." || w == "!" || w == "?" || w == ",") { 106 + if (w == "." || w == "!" || w == "?" || w == "," || w == "。" ||
  107 + w == "!" || w == "?" || w == ",") {
107 ans.push_back(std::move(this_sentence)); 108 ans.push_back(std::move(this_sentence));
108 this_sentence = {}; 109 this_sentence = {};
109 } 110 }