From 5ffb193bcd1d5481842092f0eea9c4be59f1eeae Mon Sep 17 00:00:00 2001 From: Downupanddownup Date: Thu, 6 Jun 2024 18:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=BA=E6=95=B0?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GPT_SoVITS/text/symbols.py | 1 + Ref_Audio_Selector/ui_init/init_ui_param.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GPT_SoVITS/text/symbols.py b/GPT_SoVITS/text/symbols.py index 7049949..b85c57a 100644 --- a/GPT_SoVITS/text/symbols.py +++ b/GPT_SoVITS/text/symbols.py @@ -398,4 +398,5 @@ arpa = { symbols = [pad] + c + v + ja_symbols + pu_symbols + list(arpa) symbols = sorted(set(symbols)) if __name__ == "__main__": + print(symbols) print(len(symbols)) diff --git a/Ref_Audio_Selector/ui_init/init_ui_param.py b/Ref_Audio_Selector/ui_init/init_ui_param.py index 75cf110..87367bb 100644 --- a/Ref_Audio_Selector/ui_init/init_ui_param.py +++ b/Ref_Audio_Selector/ui_init/init_ui_param.py @@ -108,9 +108,9 @@ def init_first(): text_sample_dir_default = common.check_path_existence_and_return( os.path.join(base_dir_default, params.list_to_convert_reference_audio_dir)) - slider_subsection_num_default = empty_default(rw_param.read(rw_param.subsection_num), 5) + slider_subsection_num_default = int(empty_default(rw_param.read(rw_param.subsection_num), 10)) - slider_sample_num_default = empty_default(rw_param.read(rw_param.sample_num), 4) + slider_sample_num_default = (empty_default(rw_param.read(rw_param.sample_num), 4)) def init_second():