From d687c8cdeba6d291f4724ddf3e7275e0d3e131be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 4 Apr 2024 14:05:40 -0700 Subject: [PATCH] transports: updated silero vad not found message --- src/dailyai/transports/threaded_transport.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dailyai/transports/threaded_transport.py b/src/dailyai/transports/threaded_transport.py index 037ba8f10..9b2530efd 100644 --- a/src/dailyai/transports/threaded_transport.py +++ b/src/dailyai/transports/threaded_transport.py @@ -81,12 +81,13 @@ def __init__( except ModuleNotFoundError as e: if self._has_webrtc_vad: - self._logger.debug(f"Couldn't load torch; using webrtc VAD") + self._logger.debug( + f"Couldn't load torch; using webrtc VAD") self._vad_samples = int(self._speaker_sample_rate / 100.0) else: self._logger.error(f"Exception: {e}") self._logger.error( - "In order to use VAD, you'll need to install the `torch` and `torchaudio` modules.") + "In order to use Silero VAD, you'll need to `pip install dailyai[silero].") raise Exception(f"Missing module(s): {e}") vad_frame_s = self._vad_samples / self._speaker_sample_rate