From 7ea0b011bc0d4b2c5caf48f219cb82cc37100f1d Mon Sep 17 00:00:00 2001 From: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com> Date: Sun, 5 Oct 2025 06:42:11 +0100 Subject: [PATCH] . --- GPT_SoVITS/text/chinese2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT_SoVITS/text/chinese2.py b/GPT_SoVITS/text/chinese2.py index 3730cae5..9f2a2782 100644 --- a/GPT_SoVITS/text/chinese2.py +++ b/GPT_SoVITS/text/chinese2.py @@ -29,7 +29,7 @@ pinyin_to_symbol_map = { parent_directory = os.path.dirname(current_file_path) -is_g2pw = True +is_g2pw = os.getenv("USE_G2PW", "1") == "1" if is_g2pw: g2pw = G2PWPinyin( model_dir="GPT_SoVITS/text/G2PWModel",