fix pause problem of Chinese speech

This commit is contained in:
Aaron-Li 2023-12-01 23:30:03 +08:00
parent 6d1905c2b7
commit 7b8808186a
1 changed files with 1 additions and 1 deletions

View File

@ -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/全行和半行