From 53a3912fff8c26f4e5e5d1e867dfb654c8fb94be Mon Sep 17 00:00:00 2001 From: Bot Bahlul <88623122+botbahlul@users.noreply.github.com> Date: Tue, 30 May 2023 13:55:53 +0800 Subject: [PATCH] Add files via upload --- linux/whisper_autosrt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/whisper_autosrt.py b/linux/whisper_autosrt.py index b43374c..68c89bc 100644 --- a/linux/whisper_autosrt.py +++ b/linux/whisper_autosrt.py @@ -27,7 +27,7 @@ from faster_whisper import WhisperModel -VERSION = "0.0.4" +VERSION = "0.0.5" whisper_models = [ "tiny.en", @@ -1685,7 +1685,7 @@ def main(): total_duration = reader.getnframes() / rate reader.close() - segments, info = model.transcribe(wav_filepath, beam_size=5, language=src_language) + segments, info = model.transcribe(wav_filepath, beam_size=5, language=src_language, task=task) widgets = ["Performing speech recognition : ", Percentage(), ' ', Bar(marker='#'), ' ', ETA()] pbar = ProgressBar(widgets=widgets, maxval=100).start()