From 9aa2564e37daf750b3398fd0c2446c738c37e06a Mon Sep 17 00:00:00 2001 From: Purfview <69023953+Purfview@users.noreply.github.com> Date: Sat, 7 Dec 2024 11:36:29 +0000 Subject: [PATCH] is None --- faster_whisper/vad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)