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

Merge pull request #1912 from yt605155624/fix_yao

[TTS]fix yao, test=tts
......@@ -63,7 +63,8 @@ class ToneSandhi():
'扫把', '惦记'
}
self.must_not_neural_tone_words = {
"男子", "女子", "分子", "原子", "量子", "莲子", "石子", "瓜子", "电子", "人人", "虎虎"
"男子", "女子", "分子", "原子", "量子", "莲子", "石子", "瓜子", "电子", "人人", "虎虎",
"幺幺"
}
self.punc = ":,;。?!“”‘’':,;.?!"
......
......@@ -103,7 +103,7 @@ def replace_default_num(match):
str
"""
number = match.group(0)
return verbalize_digit(number)
return verbalize_digit(number, alt_one=True)
# 数字表达式
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册