From 9286a27ad3608cf81ef122c3b06a681765e7490e Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Sat, 3 Feb 2024 00:47:57 +0800 Subject: [PATCH] Add files via upload --- GPT_SoVITS/text/cleaner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPT_SoVITS/text/cleaner.py b/GPT_SoVITS/text/cleaner.py index 8142f47..92a18eb 100644 --- a/GPT_SoVITS/text/cleaner.py +++ b/GPT_SoVITS/text/cleaner.py @@ -10,6 +10,9 @@ special = [ def clean_text(text, language): + if(language not in language_module_map): + language="en" + text=" " for special_s, special_l, target_symbol in special: if special_s in text and language == special_l: return clean_special(text, language, special_s, target_symbol)