fix yao, test=tts

pull/1912/head
TianYuan 3 years ago
parent 466899317e
commit e61757dbf7

@ -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)
# 数字表达式

Loading…
Cancel
Save