Spaces:
Sleeping
Sleeping
helloWorld199
commited on
Commit
•
6172477
1
Parent(s):
0ee9e35
Upload main.py
Browse files- src/main.py +1 -1
src/main.py
CHANGED
@@ -287,6 +287,7 @@ def vocal_only_pipeline(song_input, voice_model, pitch_change, is_webui=0,index_
|
|
287 |
pitch_change = pitch_change * 12 + pitch_change_all
|
288 |
ai_vocals_path = os.path.join(song_dir, f'{os.path.splitext(os.path.basename(orig_song_path))[0]}_{voice_model}_p{pitch_change}_i{index_rate}_fr{filter_radius}_rms{rms_mix_rate}_pro{protect}_{f0_method}{"" if f0_method != "mangio-crepe" else f"_{crepe_hop_length}"}.wav')
|
289 |
display_progress(f'[~] Post reverb {ai_vocals_path}', 0.5, is_webui, progress)
|
|
|
290 |
|
291 |
display_progress('[~] Converting voice using RVC...', 0.5, is_webui, progress)
|
292 |
voice_change(voice_model, vocals_path, ai_vocals_path, pitch_change, f0_method, index_rate, filter_radius, rms_mix_rate, protect, crepe_hop_length, is_webui)
|
@@ -349,7 +350,6 @@ def song_cover_pipeline(song_input, voice_model, pitch_change, keep_files,
|
|
349 |
else:
|
350 |
orig_song_path, instrumentals_path, main_vocals_dereverb_path, backup_vocals_path = paths
|
351 |
|
352 |
-
print(f"### AFTER PREPROCESS_SONG, PATHS: {orig_song_path}{vocals_path}{instrumentals_path}")
|
353 |
pitch_change = pitch_change * 12 + pitch_change_all
|
354 |
ai_vocals_path = os.path.join(song_dir, f'{os.path.splitext(os.path.basename(orig_song_path))[0]}_{voice_model}_p{pitch_change}_i{index_rate}_fr{filter_radius}_rms{rms_mix_rate}_pro{protect}_{f0_method}{"" if f0_method != "mangio-crepe" else f"_{crepe_hop_length}"}.wav')
|
355 |
# Added _cover at the end of filename
|
|
|
287 |
pitch_change = pitch_change * 12 + pitch_change_all
|
288 |
ai_vocals_path = os.path.join(song_dir, f'{os.path.splitext(os.path.basename(orig_song_path))[0]}_{voice_model}_p{pitch_change}_i{index_rate}_fr{filter_radius}_rms{rms_mix_rate}_pro{protect}_{f0_method}{"" if f0_method != "mangio-crepe" else f"_{crepe_hop_length}"}.wav')
|
289 |
display_progress(f'[~] Post reverb {ai_vocals_path}', 0.5, is_webui, progress)
|
290 |
+
time.sleep(10)
|
291 |
|
292 |
display_progress('[~] Converting voice using RVC...', 0.5, is_webui, progress)
|
293 |
voice_change(voice_model, vocals_path, ai_vocals_path, pitch_change, f0_method, index_rate, filter_radius, rms_mix_rate, protect, crepe_hop_length, is_webui)
|
|
|
350 |
else:
|
351 |
orig_song_path, instrumentals_path, main_vocals_dereverb_path, backup_vocals_path = paths
|
352 |
|
|
|
353 |
pitch_change = pitch_change * 12 + pitch_change_all
|
354 |
ai_vocals_path = os.path.join(song_dir, f'{os.path.splitext(os.path.basename(orig_song_path))[0]}_{voice_model}_p{pitch_change}_i{index_rate}_fr{filter_radius}_rms{rms_mix_rate}_pro{protect}_{f0_method}{"" if f0_method != "mangio-crepe" else f"_{crepe_hop_length}"}.wav')
|
355 |
# Added _cover at the end of filename
|