mirror of https://github.com/coqui-ai/TTS.git
fix pause problem of Chinese speech
This commit is contained in:
parent
6d1905c2b7
commit
7b8808186a
TTS/tts/layers/xtts
|
@ -65,7 +65,7 @@ CN_PUNCS_NONSTOP = ""#$%&'()*+,-/:;<=>@[
|
||||||
CN_PUNCS = CN_PUNCS_STOP + CN_PUNCS_NONSTOP
|
CN_PUNCS = CN_PUNCS_STOP + CN_PUNCS_NONSTOP
|
||||||
|
|
||||||
PUNCS = CN_PUNCS + string.punctuation
|
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/全行和半行
|
# https://zh.wikipedia.org/wiki/全行和半行
|
||||||
|
|
Loading…
Reference in New Issue