Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files492 unmodified lines493494495496497498499500492 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 filesvocal = AudioSegment.from_file(vocal_path.wav)instrumental = AudioSegment.from_file(inst_path.wav)# Overlay the vocal track on top of the instrumental trackcombined = vocal.overlay(instrumental)492 unmodified lines493494495496497498499500492 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 filesvocal = AudioSegment.from_file(vocal_path)instrumental = AudioSegment.from_file(inst_path)# Overlay the vocal track on top of the instrumental trackcombined = vocal.overlay(instrumental)
infertest.py+2-2