From 90623400a4ad4eef025930c440430175748352a1 Mon Sep 17 00:00:00 2001 From: Quentin Fuxa Date: Tue, 15 Jul 2025 12:04:17 +0200 Subject: [PATCH] Remove automatic downloading of SimulStreaming dependencies on import failure --- .../whisper_streaming_custom/backends.py | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/whisperlivekit/whisper_streaming_custom/backends.py b/whisperlivekit/whisper_streaming_custom/backends.py index f3be06c..7af0cc4 100644 --- a/whisperlivekit/whisper_streaming_custom/backends.py +++ b/whisperlivekit/whisper_streaming_custom/backends.py @@ -23,22 +23,11 @@ try: from whisperlivekit.simul_whisper.whisper import tokenizer SIMULSTREAMING_AVAILABLE = True except ImportError: - logger.warning("⚠️ SimulStreaming dependencies not available. Attempting to download them.") - try: - from whisperlivekit import download_simulstreaming_backend - download_simulstreaming_backend() - from whisperlivekit.simul_whisper.config import AlignAttConfig - from whisperlivekit.simul_whisper.simul_whisper import PaddedAlignAttWhisper, DEC_PAD - from whisperlivekit.simul_whisper.whisper import tokenizer - SIMULSTREAMING_AVAILABLE = True - logger.info("SimulStreaming dependencies downloaded successfully.") - except Exception as e: - logger.error(f"Failed to download or import SimulStreaming dependencies: {e}") - SIMULSTREAMING_AVAILABLE = False - AlignAttConfig = None - PaddedAlignAttWhisper = None - DEC_PAD = None - tokenizer = None + SIMULSTREAMING_AVAILABLE = False + AlignAttConfig = None + PaddedAlignAttWhisper = None + DEC_PAD = None + tokenizer = None class ASRBase: sep = " " # join transcribe words with this character (" " for whisper_timestamped,