未验证 提交 9aab706c 编写于 作者: 小湉湉's avatar 小湉湉 提交者: GitHub

fix frontend bug, test=tts (#2606)

上级 8ea289a2
......@@ -210,7 +210,8 @@ class G2PWOnnxConverter:
for sent_id, sent in enumerate(sentences):
# pypinyin works well for Simplified Chinese than Traditional Chinese
sent_s = tranditional_to_simplified(sent)
pypinyin_result = pinyin(sent_s, style=Style.TONE3)
pypinyin_result = pinyin(
sent_s, neutral_tone_with_five=True, style=Style.TONE3)
partial_result = [None] * len(sent)
for i, char in enumerate(sent):
if char in self.polyphonic_chars_new:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册