helloWorld199
commited on
Update src/main.py
Browse files- src/main.py +2 -2
src/main.py
CHANGED
@@ -229,8 +229,8 @@ def add_audio_effects(audio_path, reverb_rm_size, reverb_wet, reverb_dry, reverb
|
|
229 |
def combine_audio(audio_paths, output_path, main_gain, backup_gain, inst_gain, output_format):
|
230 |
main_vocal_audio = AudioSegment.from_wav(audio_paths[0]) - 4 + main_gain
|
231 |
backup_vocal_audio = AudioSegment.from_wav(audio_paths[1]) - 6 + backup_gain
|
232 |
-
instrumental_audio = AudioSegment.from_wav(audio_paths[2]) - 7 + inst_gain
|
233 |
-
main_vocal_audio.overlay(backup_vocal_audio).
|
234 |
|
235 |
# song_input is the main vocals that is going through the rvc processs
|
236 |
# backup vocals are the backup vocals to be added at the end
|
|
|
229 |
def combine_audio(audio_paths, output_path, main_gain, backup_gain, inst_gain, output_format):
|
230 |
main_vocal_audio = AudioSegment.from_wav(audio_paths[0]) - 4 + main_gain
|
231 |
backup_vocal_audio = AudioSegment.from_wav(audio_paths[1]) - 6 + backup_gain
|
232 |
+
#instrumental_audio = AudioSegment.from_wav(audio_paths[2]) - 7 + inst_gain
|
233 |
+
main_vocal_audio.overlay(backup_vocal_audio).export(output_path, format=output_format)
|
234 |
|
235 |
# song_input is the main vocals that is going through the rvc processs
|
236 |
# backup vocals are the backup vocals to be added at the end
|