From 46cd596027c0399621c83e21b9713798e9f099c5 Mon Sep 17 00:00:00 2001 From: KamioRinn <63162909+KamioRinn@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:11:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=E6=B7=B7?= =?UTF-8?q?=E5=90=88=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9F=AD=E5=8D=95=E8=AF=8D?= =?UTF-8?q?=E5=8F=91=E9=9F=B3=E4=B8=8D=E6=B8=85=E6=99=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#1286)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add pause before short words * Add 'conda' --- GPT_SoVITS/text/cleaner.py | 5 +++++ GPT_SoVITS/text/engdict-hot.rep | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/GPT_SoVITS/text/cleaner.py b/GPT_SoVITS/text/cleaner.py index 0d82d85..c42264a 100644 --- a/GPT_SoVITS/text/cleaner.py +++ b/GPT_SoVITS/text/cleaner.py @@ -22,6 +22,11 @@ def clean_text(text, language): phones, word2ph = language_module.g2p(norm_text) assert len(phones) == sum(word2ph) assert len(norm_text) == len(word2ph) + elif language == "en": + phones = language_module.g2p(norm_text) + if len(phones) < 4: + phones = [','] * (4 - len(phones)) + phones + word2ph = None else: phones = language_module.g2p(norm_text) word2ph = None diff --git a/GPT_SoVITS/text/engdict-hot.rep b/GPT_SoVITS/text/engdict-hot.rep index 120e5ef..b926830 100644 --- a/GPT_SoVITS/text/engdict-hot.rep +++ b/GPT_SoVITS/text/engdict-hot.rep @@ -1,2 +1,3 @@ CHATGPT CH AE1 T JH IY1 P IY1 T IY1 -JSON JH EY1 S AH0 N \ No newline at end of file +JSON JH EY1 S AH0 N +CONDA K AA1 N D AH0 \ No newline at end of file