1
0
mirror of synced 2024-11-15 03:07:40 +01:00

Add GUI to support basic realtime VC.

This commit is contained in:
EntropyRiser 2023-04-11 00:14:37 +08:00
parent cb04a991a6
commit a92240b270

10
gui.py
View File

@ -160,17 +160,17 @@ class GUI:
input_devices,output_devices,_, _=self.get_devices()
layout=[
[
sg.Frame(title='加载模型',layout=[
[sg.Input(default_text='TEMP\\atri.pth',key='pth_path'),sg.FileBrowse('选择pth文件')],
[sg.Input(default_text='TEMP\\added_IVF512_Flat_atri_baseline_src_feat.index',key='index_path'),sg.FileBrowse('选择index文件')],
[sg.Input(default_text='TEMP\\big_src_feature_atri.npy',key='npy_path'),sg.FileBrowse('选择npy文件')]
sg.Frame(title='加载模型/Load Model',layout=[
[sg.Input(default_text='TEMP\\atri.pth',key='pth_path'),sg.FileBrowse('选择.pth文件/.pth File')],
[sg.Input(default_text='TEMP\\added_IVF512_Flat_atri_baseline_src_feat.index',key='index_path'),sg.FileBrowse('选择.index文件/.index File')],
[sg.Input(default_text='TEMP\\big_src_feature_atri.npy',key='npy_path'),sg.FileBrowse('选择.npy文件/.npy File')]
])
],
[
sg.Frame(layout=[
[sg.Text("输入设备/Input Device"),sg.Combo(input_devices,key='sg_input_device',default_value=input_devices[sd.default.device[0]])],
[sg.Text("输出设备/Output Device"),sg.Combo(output_devices,key='sg_output_device',default_value=output_devices[sd.default.device[1]])]
],title='音频设备(请使用同种类驱动)')
],title='音频设备(请使用同种类驱动)/Audio Devices')
],
[
sg.Frame(layout=[