what can you tell me about this error? Agent par...
# ask-ai
a
what can you tell me about this error? Agent participant connected: kenny_1756058133295_4212 2025-08-24 175533,465 - httpx - INFO - HTTP Request: GET https://api.openai.com/v1/ "HTTP/1.1 404 Not Found" 🎤 [TRANSCRIPTION_HANDLER] Registered for kenny 2025-08-24 175533,661 - livekit.agents - ERROR - Error in _stt_task Traceback (most recent call last): File "/app/lkenv/lib/python3.13/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lkenv/lib/python3.13/site-packages/livekit/agents/voice/audio_recognition.py", line 462, in _stt_task async for ev in node: ...<3 lines>... await self._on_stt_event(ev) File "/app/lkenv/lib/python3.13/site-packages/livekit/agents/voice/agent.py", line 333, in stt_node if not activity.stt.capabilities.streaming: ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'STT' object has no attribute 'capabilities' 2025-08-24 175533,662 - livekit.agents - ERROR - Error in _vad_task Traceback (most recent call last): File "/app/lkenv/lib/python3.13/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lkenv/lib/python3.13/site-packages/livekit/agents/voice/audio_recognition.py", line 478, in _vad_task stream = vad.stream() ^^^^^^^^^^ AttributeError: 'VAD' object has no attribute 'stream' ✅ Agent kenny connected to room 🔧 Assigning response generator to Enhanced API Priority agents...
t
Thanks for reaching out, Richard. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the errors you're running into are due to some hiccups with how the STT (Speech-to-Text) and VAD (Voice Activity Detection) parts are set up in LiveKit. No worries though—I’m here to help you sort them out! Here’s a breakdown with some easy fixes: 1. STT Error: 'STT' object has no attribute 'capabilities' This usually happens when the STT class isn’t set up quite right. To get this working smoothly: • Make sure you’re using a properly built STT class, like Deepgram STT, and that it’s initialized correctly. For example:
Copy code
from 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:
Copy code
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:
Copy code
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