gorkemgoknar commited on
Commit
bebf084
·
1 Parent(s): 5b0db06

fix filter

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic,no_lang_aut
87
  out_filename = mic_file_path + str(uuid.uuid4()) + ".wav" #ffmpeg to know output format
88
 
89
  #we will use newer ffmpeg as that has afftn denoise filter
90
- shell_command = f"./ffmpeg -y -i {mic_file_path} -af {lowpass_highpass}{fast_denoise},{trim_silence},loudnorm {out_filename}".split(" ")
91
 
92
  command_result = subprocess.run([item for item in shell_command], capture_output=False,text=True, check=True)
93
  speaker_wav=out_filename
 
87
  out_filename = mic_file_path + str(uuid.uuid4()) + ".wav" #ffmpeg to know output format
88
 
89
  #we will use newer ffmpeg as that has afftn denoise filter
90
+ shell_command = f"./ffmpeg -y -i {mic_file_path} -af {lowpass_highpass},{fast_denoise},{trim_silence},loudnorm {out_filename}".split(" ")
91
 
92
  command_result = subprocess.run([item for item in shell_command], capture_output=False,text=True, check=True)
93
  speaker_wav=out_filename