helloWorld199 commited on
Commit
5d8b016
1 Parent(s): 787717e

Update src/main.py

Browse files
Files changed (1) hide show
  1. 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).overlay(instrumental_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
 
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