handle single file input/output

This commit is contained in:
Brandon Thomas
2023-07-17 17:14:53 -04:00
parent 9beaadd0ba
commit 0f3f56b51a
@@ -248,12 +248,10 @@ def get_vc(model_path):
get_vc(model_path)
audios = os.listdir(input_path)
for file in tq.tqdm(audios):
if file.endswith(".wav"):
file_path = input_path + "/" + file
wav_opt = vc_single(
0, file_path, f0up_key, None, f0method, index_path, index_rate
)
out_path = opt_path + "/" + file
wavfile.write(out_path, tgt_sr, wav_opt)
file_path = input_path
wav_opt = vc_single(
0, file_path, f0up_key, None, f0method, index_path, index_rate
)
out_path = opt_path
wavfile.write(out_path, tgt_sr, wav_opt)