transports: updated silero vad not found message

This commit is contained in:
Aleix Conchillo Flaqué
2024-04-04 14:05:40 -07:00
parent 951f20c788
commit d687c8cdeb

View File

@@ -81,12 +81,13 @@ class ThreadedTransport(AbstractTransport):
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