Skip to content

Commit

Permalink
is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Purfview authored Dec 7, 2024
1 parent df854d1 commit 9aa2564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faster_whisper/vad.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_speech_timestamps(
triggered = False
speeches = []
current_speech = {}
if neg_threshold == None:
if neg_threshold is None:
neg_threshold = max(threshold - 0.15, 0.01)

# to save potential segment end (and tolerate some silence)
Expand Down

0 comments on commit 9aa2564

Please sign in to comment.