From f6e53b2fab8074971d6f98417d915b6aa07f7bec Mon Sep 17 00:00:00 2001 From: Chris Margach Date: Wed, 9 Apr 2025 11:59:21 +0900 Subject: [PATCH 1/2] return silero_vad_iterator.py to whisper_streaming(_custom) package. --- .../{ => whisper_streaming_custom}/silero_vad_iterator.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename whisperlivekit/{ => whisper_streaming_custom}/silero_vad_iterator.py (100%) diff --git a/whisperlivekit/silero_vad_iterator.py b/whisperlivekit/whisper_streaming_custom/silero_vad_iterator.py similarity index 100% rename from whisperlivekit/silero_vad_iterator.py rename to whisperlivekit/whisper_streaming_custom/silero_vad_iterator.py From 51e6a6f6f9985a1f945babd3fad6d6152e10a1d2 Mon Sep 17 00:00:00 2001 From: Chris Margach Date: Wed, 9 Apr 2025 13:33:39 +0900 Subject: [PATCH 2/2] update import after moving target file --- whisperlivekit/whisper_streaming_custom/online_asr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisperlivekit/whisper_streaming_custom/online_asr.py b/whisperlivekit/whisper_streaming_custom/online_asr.py index 2fd9de0..db2dbb7 100644 --- a/whisperlivekit/whisper_streaming_custom/online_asr.py +++ b/whisperlivekit/whisper_streaming_custom/online_asr.py @@ -358,7 +358,7 @@ class VACOnlineASRProcessor: # Load a VAD model (e.g. Silero VAD) import torch model, _ = torch.hub.load(repo_or_dir="snakers4/silero-vad", model="silero_vad") - from silero_vad_iterator import FixedVADIterator + from .silero_vad_iterator import FixedVADIterator self.vac = FixedVADIterator(model) self.logfile = self.online.logfile