Skip to content

Commit

Permalink
create batch folder if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf committed Sep 8, 2024
1 parent f09e159 commit f40b821
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rvc/infer/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ def convert_audio_batch(
if f.endswith((".mp3", ".wav", ".flac", ".m4a", ".ogg", ".opus"))
]
print(f"Detected {len(audio_files)} audio files for inference.")

if not os.path.exists(audio_output_path):
os.makedirs(audio_output_path)

for i, audio_input_path in enumerate(audio_files):
audio_output_paths = os.path.join(
audio_output_path,
Expand Down

0 comments on commit f40b821

Please sign in to comment.