ankush13r commited on
Commit
ff06d12
·
verified ·
1 Parent(s): e6ac714

Update whisper2.py

Browse files
Files changed (1) hide show
  1. whisper2.py +2 -2
whisper2.py CHANGED
@@ -28,8 +28,8 @@ def convert_forced_to_tokens(forced_decoder_ids):
28
 
29
 
30
  def change_formate(input_file):
31
- ffmpeg.input(input_file).output("16_" + input_file, loglevel='quiet', **{'ar': '16000'}).run()
32
- return "16_" + input_file
33
 
34
 
35
  def generate(audio):
 
28
 
29
 
30
  def change_formate(input_file):
31
+ ffmpeg.input(input_file).output("output.wav", **{'ar': '16000'}).run(overwrite_output=True) #loglevel='quiet'
32
+ return "output.wav"
33
 
34
 
35
  def generate(audio):