adventurous-iron-97326
08/24/2025, 5:58 PMtall-airline-16756
08/24/2025, 5:58 PMtall-airline-16756
08/24/2025, 6:01 PMfrom livekit.plugins.deepgram import STT
stt = STT(
model="nova-3",
language="en-US",
interim_results=True
)
print(stt.capabilities)
• If you’ve created your own STT class, double-check that it inherits from the base STT class and sets up the capabilities properly.
• Also, updating LiveKit Agents to the latest version can help keep everything compatible:
pip install --upgrade livekit-agents
2. VAD Error: 'VAD' object has no attribute 'stream'
This one pops up when the VAD instance isn’t initialized the way it should be. Here’s how to fix it:
• Use a concrete implementation like Silero VAD and load it with the load() method. For example:
from livekit.plugins import silero
vad = silero.VAD.load(
min_speech_duration=0.1,
min_silence_duration=0.5,
)
vad_stream = vad.stream()
• Make sure you’re not trying to use the abstract VAD class directly, since it doesn’t have the stream() method implemented.
• It’s also a good idea to prewarm the VAD model during the prewarm phase to get better performance.
If you want, feel free to share more about how you’re implementing this, and I’d be happy to help you troubleshoot further or give you more tailored advice.
Sources: STTCapabilities | LiveKit Agents | livekit-agents/livekit/agents/stt/__init__.py | VAD | LiveKit Agents | VAD | LiveKit Agents | livekit-agents/livekit/agents/stt/stream_adapter.py