Spaces:
Running
on
Zero
Running
on
Zero
Update whisper2.py
Browse files- 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("
|
32 |
-
return "
|
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):
|