diff --git a/faster_whisper/vad.py b/faster_whisper/vad.py index 5f97bf7b..29c642d4 100644 --- a/faster_whisper/vad.py +++ b/faster_whisper/vad.py @@ -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)