Skip to content

Commit

Permalink
Bugfix: Illogical "Avoid computing higher temperatures on no_speech" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Purfview authored Jan 24, 2024
1 parent ad3c830 commit 00efce1
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 @@ -744,6 +744,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 00efce1

Please sign in to comment.