Skip to content

Commit

Permalink
is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Purfview authored and MahmoudAshraf97 committed Dec 28, 2024
1 parent d677509 commit edd4cfe
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 edd4cfe

Please sign in to comment.