Skip to content

Commit

Permalink
Add split audio for batch
Browse files Browse the repository at this point in the history
  • Loading branch information
aitronz committed Jan 31, 2024
1 parent 37d091a commit 5576bcc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def run_batch_infer_script(
output_folder,
pth_file,
index_path,
split_audio,
):
infer_script_path = os.path.join("rvc", "infer", "infer.py")

Expand Down Expand Up @@ -104,6 +105,7 @@ def run_batch_infer_script(
output_path,
pth_file,
index_path,
str(split_audio),
]
subprocess.run(command)

Expand Down
7 changes: 7 additions & 0 deletions tabs/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,12 @@ def inference_tab():
clear_outputs = gr.Button(
i18n("Clear Outputs (Deletes all audios in assets/audios)")
)
split_audio_batch = gr.Checkbox(
label=i18n("Split Audio"),
visible=True,
value=False,
interactive=True,
)
pitch_batch = gr.Slider(
minimum=-24,
maximum=24,
Expand Down Expand Up @@ -460,6 +466,7 @@ def toggle_visible(checkbox):
output_folder_batch,
model_file,
index_file,
split_audio_batch,
],
outputs=[vc_output3],
)

0 comments on commit 5576bcc

Please sign in to comment.