Skip to content

Commit

Permalink
Bugfix: Illogical "Avoid computing higher temperatures on no_speech" S…
Browse files Browse the repository at this point in the history
  • Loading branch information
joiemoie committed Jan 19, 2024
1 parent 874ffc4 commit 007b1a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions faster_whisper/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,8 @@ def generate_with_fallback(
if (
options.no_speech_threshold is not None
and result.no_speech_prob > options.no_speech_threshold
and options.log_prob_threshold is not None
and avg_logprob < options.log_prob_threshold
):
needs_fallback = False # silence

Expand Down

0 comments on commit 007b1a4

Please sign in to comment.