From 7b8808186a856f01f41f42cda58d2c2c089c4964 Mon Sep 17 00:00:00 2001 From: Aaron-Li <1427346151@qq.com> Date: Fri, 1 Dec 2023 23:30:03 +0800 Subject: [PATCH] fix pause problem of Chinese speech --- TTS/tts/layers/xtts/zh_num2words.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/tts/layers/xtts/zh_num2words.py b/TTS/tts/layers/xtts/zh_num2words.py index ea6d98d3..e59ccb66 100644 --- a/TTS/tts/layers/xtts/zh_num2words.py +++ b/TTS/tts/layers/xtts/zh_num2words.py @@ -65,7 +65,7 @@ CN_PUNCS_NONSTOP = ""#$%&'()*+,-/:;<=>@[ CN_PUNCS = CN_PUNCS_STOP + CN_PUNCS_NONSTOP PUNCS = CN_PUNCS + string.punctuation -PUNCS_TRANSFORM = str.maketrans(PUNCS, " " * len(PUNCS), "") # replace puncs with space +PUNCS_TRANSFORM = str.maketrans(PUNCS, "," * len(PUNCS), "") # replace puncs with English comma # https://zh.wikipedia.org/wiki/全行和半行