Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files- infertest.py +2 -2
infertest.py
CHANGED
@@ -493,8 +493,8 @@ def combine_vocal_and_inst(vocal_path, inst_path):
|
|
493 |
#command = f'ffmpeg -y -i "{inst_path}" -i "{vocal_path}" -filter_complex [0:a]volume={inst_volume}[i];[1:a]volume={vocal_volume}[v];[i][v]amix=inputs=2:duration=longest[a] -map [a] -b:a 320k -c:a libmp3lame "{output_path}"'
|
494 |
#command=f'ffmpeg -y -i "{inst_path}" -i "{vocal_path}" -filter_complex "amix=inputs=2:duration=longest" -b:a 320k -c:a libmp3lame "{output_path}"'
|
495 |
# Load the audio files
|
496 |
-
vocal = AudioSegment.from_file(vocal_path
|
497 |
-
instrumental = AudioSegment.from_file(inst_path
|
498 |
|
499 |
# Overlay the vocal track on top of the instrumental track
|
500 |
combined = vocal.overlay(instrumental)
|
|
|
493 |
#command = f'ffmpeg -y -i "{inst_path}" -i "{vocal_path}" -filter_complex [0:a]volume={inst_volume}[i];[1:a]volume={vocal_volume}[v];[i][v]amix=inputs=2:duration=longest[a] -map [a] -b:a 320k -c:a libmp3lame "{output_path}"'
|
494 |
#command=f'ffmpeg -y -i "{inst_path}" -i "{vocal_path}" -filter_complex "amix=inputs=2:duration=longest" -b:a 320k -c:a libmp3lame "{output_path}"'
|
495 |
# Load the audio files
|
496 |
+
vocal = AudioSegment.from_file(vocal_path)
|
497 |
+
instrumental = AudioSegment.from_file(inst_path)
|
498 |
|
499 |
# Overlay the vocal track on top of the instrumental track
|
500 |
combined = vocal.overlay(instrumental)
|