Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files492 unmodified lines493494495496497496497498499500492 unmodified lines #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}"' #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}"' # Load the audio files vocal = AudioSegment.from_file(vocal_path.wav) instrumental = AudioSegment.from_file(inst_path.wav) vocal = AudioSegment.from_file(vocal_path) instrumental = AudioSegment.from_file(inst_path)
# Overlay the vocal track on top of the instrumental track combined = vocal.overlay(instrumental)infertest.py+2-2