Skip to content

Commit

Permalink
added beam search for short audio annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Plachtaa committed May 23, 2023
1 parent bf560f2 commit 34c5d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/short_audio_transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
options = whisper.DecodingOptions(beam_size=5, best_of=5)
result = whisper.decode(model, mel, options)

# print the recognized text
Expand Down

0 comments on commit 34c5d91

Please sign in to comment.