From f95c3c78be32525e2418b69d3d7ec4d43ab7d5fd Mon Sep 17 00:00:00 2001 From: Sourabh Date: Sat, 8 Mar 2025 04:49:26 +0530 Subject: [PATCH] fix: remove unused user-provided Silero option (#150) --- backend/fastrtc/pause_detection/silero.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/fastrtc/pause_detection/silero.py b/backend/fastrtc/pause_detection/silero.py index 196a27a..ecbcd61 100644 --- a/backend/fastrtc/pause_detection/silero.py +++ b/backend/fastrtc/pause_detection/silero.py @@ -288,8 +288,8 @@ class SileroVADModel: audio_ = librosa.resample(audio_, orig_sr=sampling_rate, target_sr=sr) if not options: - vad_parameters = SileroVadOptions() - speech_chunks = self.get_speech_timestamps(audio_, vad_parameters) + options = SileroVadOptions() + speech_chunks = self.get_speech_timestamps(audio_, options) logger.debug("VAD speech chunks: %s", speech_chunks) audio_ = self.collect_chunks(audio_, speech_chunks) logger.debug("VAD audio shape: %s", audio_.shape)