mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-17 00:23:14 +00:00
handle single file input/output
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user