Merge pull request #1912 from yt605155624/fix_yao

[TTS]fix yao, test=tts
pull/1914/head
TianYuan 3 years ago committed by GitHub
commit adbf72c921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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