@@ -161,30 +161,30 @@ def launcher(self):
161161 input_devices ,output_devices ,_ , _ = self .get_devices ()
162162 layout = [
163163 [
164- sg .Frame (title = i18n ('加载模型/Load Model ' ),layout = [
165- [sg .Input (default_text = 'TEMP\\ atri.pth' ,key = 'pth_path' ),sg .FileBrowse (i18n ('选择.pth文件/.pth File ' ))],
166- [sg .Input (default_text = 'TEMP\\ added_IVF512_Flat_atri_baseline_src_feat.index' ,key = 'index_path' ),sg .FileBrowse (i18n ('选择.index文件/.index File ' ))],
167- [sg .Input (default_text = 'TEMP\\ big_src_feature_atri.npy' ,key = 'npy_path' ),sg .FileBrowse (i18n ('选择.npy文件/.npy File ' ))]
164+ sg .Frame (title = i18n ('加载模型' ),layout = [
165+ [sg .Input (default_text = 'TEMP\\ atri.pth' ,key = 'pth_path' ),sg .FileBrowse (i18n ('选择.pth文件' ))],
166+ [sg .Input (default_text = 'TEMP\\ added_IVF512_Flat_atri_baseline_src_feat.index' ,key = 'index_path' ),sg .FileBrowse (i18n ('选择.index文件' ))],
167+ [sg .Input (default_text = 'TEMP\\ big_src_feature_atri.npy' ,key = 'npy_path' ),sg .FileBrowse (i18n ('选择.npy文件' ))]
168168 ])
169169 ],
170170 [
171171 sg .Frame (layout = [
172- [sg .Text (i18n ("输入设备/Input Device " )),sg .Combo (input_devices ,key = 'sg_input_device' ,default_value = input_devices [sd .default .device [0 ]])],
173- [sg .Text (i18n ("输出设备/Output Device " )),sg .Combo (output_devices ,key = 'sg_output_device' ,default_value = output_devices [sd .default .device [1 ]])]
174- ],title = i18n ("音频设备(请使用同种类驱动)/Audio Devices " ))
172+ [sg .Text (i18n ("输入设备" )),sg .Combo (input_devices ,key = 'sg_input_device' ,default_value = input_devices [sd .default .device [0 ]])],
173+ [sg .Text (i18n ("输出设备" )),sg .Combo (output_devices ,key = 'sg_output_device' ,default_value = output_devices [sd .default .device [1 ]])]
174+ ],title = i18n ("音频设备(请使用同种类驱动)" ))
175175 ],
176176 [
177177 sg .Frame (layout = [
178- [sg .Text (i18n ("响应阈值/Silence Threhold " )),sg .Slider (range = (- 60 ,0 ),key = 'threhold' ,resolution = 1 ,orientation = 'h' ,default_value = - 30 )],
179- [sg .Text (i18n ("音调设置/Pitch Offset " )),sg .Slider (range = (- 24 ,24 ),key = 'pitch' ,resolution = 1 ,orientation = 'h' ,default_value = 12 )]
178+ [sg .Text (i18n ("响应阈值" )),sg .Slider (range = (- 60 ,0 ),key = 'threhold' ,resolution = 1 ,orientation = 'h' ,default_value = - 30 )],
179+ [sg .Text (i18n ("音调设置" )),sg .Slider (range = (- 24 ,24 ),key = 'pitch' ,resolution = 1 ,orientation = 'h' ,default_value = 12 )]
180180
181- ],title = i18n ("常规设置/Common " )),
181+ ],title = i18n ("常规设置" )),
182182 sg .Frame (layout = [
183- [sg .Text (i18n ("采样长度/Sample Length " )),sg .Slider (range = (0.1 ,3.0 ),key = 'block_time' ,resolution = 0.1 ,orientation = 'h' ,default_value = 1.0 )],
184- [sg .Text (i18n ("淡入淡出长度/Crossfade Length " )),sg .Slider (range = (0.01 ,0.15 ),key = 'crossfade_length' ,resolution = 0.01 ,orientation = 'h' ,default_value = 0.08 )],
185- [sg .Text (i18n ("额外推理时长/Extra Length " )),sg .Slider (range = (0.05 ,3.00 ),key = 'extra_time' ,resolution = 0.01 ,orientation = 'h' ,default_value = 0.05 )],
183+ [sg .Text (i18n ("采样长度" )),sg .Slider (range = (0.1 ,3.0 ),key = 'block_time' ,resolution = 0.1 ,orientation = 'h' ,default_value = 1.0 )],
184+ [sg .Text (i18n ("淡入淡出长度" )),sg .Slider (range = (0.01 ,0.15 ),key = 'crossfade_length' ,resolution = 0.01 ,orientation = 'h' ,default_value = 0.08 )],
185+ [sg .Text (i18n ("额外推理时长" )),sg .Slider (range = (0.05 ,3.00 ),key = 'extra_time' ,resolution = 0.01 ,orientation = 'h' ,default_value = 0.05 )],
186186 [sg .Checkbox (i18n ('输出降噪/Output Noisereduce' ),key = 'noise_reduce' )]
187- ],title = i18n ("性能设置/Performance " ))
187+ ],title = i18n ("性能设置" ))
188188 ],
189189 [sg .Button (i18n ("开始音频转换" ),key = 'start_vc' ),sg .Button (i18n ("停止音频转换" ),key = 'stop_vc' )]
190190 ]
0 commit comments