fix: remove unused user-provided Silero option (#150)

This commit is contained in:
Sourabh
2025-03-08 04:49:26 +05:30
committed by GitHub
parent 2766a941d2
commit f95c3c78be

View File

@@ -288,8 +288,8 @@ class SileroVADModel:
audio_ = librosa.resample(audio_, orig_sr=sampling_rate, target_sr=sr) audio_ = librosa.resample(audio_, orig_sr=sampling_rate, target_sr=sr)
if not options: if not options:
vad_parameters = SileroVadOptions() options = SileroVadOptions()
speech_chunks = self.get_speech_timestamps(audio_, vad_parameters) speech_chunks = self.get_speech_timestamps(audio_, options)
logger.debug("VAD speech chunks: %s", speech_chunks) logger.debug("VAD speech chunks: %s", speech_chunks)
audio_ = self.collect_chunks(audio_, speech_chunks) audio_ = self.collect_chunks(audio_, speech_chunks)
logger.debug("VAD audio shape: %s", audio_.shape) logger.debug("VAD audio shape: %s", audio_.shape)