helloWorld199 commited on
Commit
e20e705
1 Parent(s): 23d230d

Update src/main.py

Browse files
Files changed (1) hide show
  1. src/main.py +5 -2
src/main.py CHANGED
@@ -264,9 +264,12 @@ def song_cover_pipeline(main_vocals, backup_vocals, voice_model, pitch_change, k
264
  print(f"DEBUG PRINT: song_dir {song_dir}")
265
 
266
  pitch_change = pitch_change * 12 + pitch_change_all
267
- 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')
268
- ai_cover_path = os.path.join(song_dir, f'{os.path.splitext(os.path.basename(orig_song_path))[0]} ({voice_model} Ver)_cover.{output_format}')
269
 
 
 
 
270
  if not os.path.exists(ai_vocals_path):
271
  display_progress('[~] Converting voice using RVC...', 0.5, is_webui, progress)
272
  voice_change(voice_model, main_vocals, ai_vocals_path, pitch_change, f0_method, index_rate, filter_radius, rms_mix_rate, protect, crepe_hop_length, is_webui)
 
264
  print(f"DEBUG PRINT: song_dir {song_dir}")
265
 
266
  pitch_change = pitch_change * 12 + pitch_change_all
267
+ ai_vocals_path = os.path.join(song_dir, f'{os.path.splitext(os.path.basename(main_vocals))[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')
268
+ ai_cover_path = os.path.join(song_dir, f'{os.path.splitext(os.path.basename(main_vocals))[0]} ({voice_model} Ver)_cover.{output_format}')
269
 
270
+ print(f"DEBUG PRINT: ai_vocals_path: {ai_vocals_path}, ai_cover_path: {ai_cover_path}")
271
+
272
+
273
  if not os.path.exists(ai_vocals_path):
274
  display_progress('[~] Converting voice using RVC...', 0.5, is_webui, progress)
275
  voice_change(voice_model, main_vocals, ai_vocals_path, pitch_change, f0_method, index_rate, filter_radius, rms_mix_rate, protect, crepe_hop_length, is_webui)