helloWorld199
commited on
Update src/main.py
Browse files- src/main.py +2 -2
src/main.py
CHANGED
@@ -313,14 +313,14 @@ def song_cover_pipeline(main_vocals, backup_vocals, voice_model, pitch_change, k
|
|
313 |
if backup_vocals == "":
|
314 |
print("####### ENTRATO QUA, BACKUP VOCALS NON DATI IN INPUT ########")
|
315 |
ai_vocals_mixed_path = convert_to_stereo(ai_vocals_mixed_path)
|
316 |
-
ai_vocals_mixed_path =
|
317 |
return ai_vocals_mixed_path
|
318 |
|
319 |
display_progress('[~] Combining AI Vocals and Instrumentals...', 0.9, is_webui, progress)
|
320 |
combine_audio([ai_vocals_mixed_path, backup_vocals], ai_cover_path, main_gain, backup_gain, inst_gain, output_format)
|
321 |
|
322 |
ai_cover_path = convert_to_stereo(ai_cover_path)
|
323 |
-
ai_cover_path =
|
324 |
|
325 |
return ai_cover_path
|
326 |
|
|
|
313 |
if backup_vocals == "":
|
314 |
print("####### ENTRATO QUA, BACKUP VOCALS NON DATI IN INPUT ########")
|
315 |
ai_vocals_mixed_path = convert_to_stereo(ai_vocals_mixed_path)
|
316 |
+
ai_vocals_mixed_path = normalize_audio(main_vocals, ai_vocals_mixed_path)
|
317 |
return ai_vocals_mixed_path
|
318 |
|
319 |
display_progress('[~] Combining AI Vocals and Instrumentals...', 0.9, is_webui, progress)
|
320 |
combine_audio([ai_vocals_mixed_path, backup_vocals], ai_cover_path, main_gain, backup_gain, inst_gain, output_format)
|
321 |
|
322 |
ai_cover_path = convert_to_stereo(ai_cover_path)
|
323 |
+
ai_cover_path = normalize_audio(main_vocals, ai_cover_path)
|
324 |
|
325 |
return ai_cover_path
|
326 |
|