From 6959ddcfc2989c0e5638c0b2c013c5362972e82d Mon Sep 17 00:00:00 2001 From: GSSun <39679899+alaister123@users.noreply.github.com> Date: Wed, 24 May 2023 04:00:49 +0800 Subject: [PATCH] Update short_audio_transcribe.py --- scripts/short_audio_transcribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/short_audio_transcribe.py b/scripts/short_audio_transcribe.py index 0627472..c82c8ce 100644 --- a/scripts/short_audio_transcribe.py +++ b/scripts/short_audio_transcribe.py @@ -23,7 +23,7 @@ def transcribe_one(audio_path): print(f"Detected language: {max(probs, key=probs.get)}") lang = max(probs, key=probs.get) # decode the audio - options = whisper.DecodingOptions(beam_size=5, best_of=5) + options = whisper.DecodingOptions(beam_size=5) result = whisper.decode(model, mel, options) # print the recognized text