Spaces:
Sleeping
Sleeping
helloWorld199
commited on
Commit
•
6243a1f
1
Parent(s):
d0da627
Update src/main.py
Browse files- src/main.py +2 -2
src/main.py
CHANGED
@@ -227,8 +227,8 @@ def add_audio_effects(audio_path, reverb_rm_size, reverb_wet, reverb_dry, reverb
|
|
227 |
|
228 |
|
229 |
def combine_audio(audio_paths, output_path, main_gain, backup_gain, inst_gain, output_format):
|
230 |
-
main_vocal_audio = AudioSegment.
|
231 |
-
backup_vocal_audio = AudioSegment.
|
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 |
|
|
|
227 |
|
228 |
|
229 |
def combine_audio(audio_paths, output_path, main_gain, backup_gain, inst_gain, output_format):
|
230 |
+
main_vocal_audio = AudioSegment.from_file(audio_paths[0]) - 4 + main_gain
|
231 |
+
backup_vocal_audio = AudioSegment.from_file(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 |
|