ArkanDash commited on
Commit
7adb7ab
1 Parent(s): e9edf68

fix(app): low vocal audio volume

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,7 +116,7 @@ def combine_vocal_and_inst(audio_data):
116
  wave_file.setsampwidth(2)
117
  wave_file.setframerate(audio_data[0])
118
  wave_file.writeframes(audio_data[1].tobytes())
119
- 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}'
120
  result = subprocess.run(command.split(), stdout=subprocess.PIPE)
121
  return output_path
122
 
 
116
  wave_file.setsampwidth(2)
117
  wave_file.setframerate(audio_data[0])
118
  wave_file.writeframes(audio_data[1].tobytes())
119
+ command = f'ffmpeg -y -i {inst_path} -i {vocal_path} -filter_complex [1:a]volume=6dB[v];[0:a][v]amix=inputs=2:duration=longest -b:a 320k -c:a libmp3lame {output_path}'
120
  result = subprocess.run(command.split(), stdout=subprocess.PIPE)
121
  return output_path
122