Merge pull request #3351 from aaron-lii/chinese-puncs

fix pause problem of Chinese speech
pull/3373/head
Eren Gölge 2023-12-04 15:57:42 +01:00 committed by GitHub
commit e49c512d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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/全行和半行