diff --git a/configs/config.json b/configs/config.json new file mode 100644 index 0000000..6bf4f6b --- /dev/null +++ b/configs/config.json @@ -0,0 +1,14 @@ +{ + "pth_path": "weights/kikiV1.pth", + "index_path": "logs/kikiV1.index", + "sg_input_device": "VoiceMeeter Output (VB-Audio Vo (MME)", + "sg_output_device": "VoiceMeeter Aux Input (VB-Audio (MME)", + "threhold": -45.0, + "pitch": 0.0, + "index_rate": 1.0, + "block_time": 0.09, + "crossfade_length": 0.15, + "extra_time": 5.0, + "n_cpu": 8.0, + "f0method": "rmvpe" +} diff --git a/gui_v1.py b/gui_v1.py index f80fe4c..9486508 100644 --- a/gui_v1.py +++ b/gui_v1.py @@ -92,14 +92,14 @@ if __name__ == "__main__": def load(self): input_devices, output_devices, _, _ = self.get_devices() try: - with open("values1.json", "r") as j: + with open("configs/config.json", "r") as j: data = json.load(j) data["pm"] = data["f0method"] == "pm" data["harvest"] = data["f0method"] == "harvest" data["crepe"] = data["f0method"] == "crepe" data["rmvpe"] = data["f0method"] == "rmvpe" except: - with open("values1.json", "w") as j: + with open("configs/config.json", "w") as j: data = { "pth_path": " ", "index_path": " ", @@ -349,7 +349,7 @@ if __name__ == "__main__": ].index(True) ], } - with open("values1.json", "w") as j: + with open("configs/config.json", "w") as j: json.dump(settings, j) if event == "stop_vc" and self.flag_vc == True: self.flag_vc = False diff --git a/values1.json b/values1.json deleted file mode 100644 index 64caaff..0000000 --- a/values1.json +++ /dev/null @@ -1 +0,0 @@ -{"pth_path": "weights/kikiV1.pth", "index_path": "logs/kikiV1.index", "sg_input_device": "VoiceMeeter Output (VB-Audio Vo (MME)", "sg_output_device": "VoiceMeeter Aux Input (VB-Audio (MME)", "threhold": -45.0, "pitch": 0.0, "index_rate": 1.0, "block_time": 0.09, "crossfade_length": 0.15, "extra_time": 5.0, "n_cpu": 8.0, "f0method": "rmvpe"} \ No newline at end of file