adventurous-iron-97326
08/24/2025, 8:30 AMtall-airline-16756
08/24/2025, 8:30 AMtall-airline-16756
08/24/2025, 8:31 AMAttributeError: 'STT' object has no attribute 'capabilities' usually pops up when you're trying to access the capabilities property on a Speech-to-Text (STT) object that either wasn’t set up properly or isn’t actually based on the main STT class.
Here’s why that might be happening:
• The STT object might not have been initialized the right way — maybe it was used directly instead of through a provider plugin like OpenAI or Deepgram.
• The object you’re working with might not be a proper STT subclass instance, which can happen if a custom or incorrect object got passed in where an STT was expected.
To fix this, double-check that:
1. You’re using a valid provider plugin (like OpenAI, Deepgram, or AWS) and creating its STT class properly.
2. The object you’re referencing is truly an instance of an STT subclass from one of those supported plugins.
For example, if you’re using AWS Transcribe, it should look something like this:
from livekit.plugins import aws
stt = aws.STT() # Proper instantiation
print(stt.capabilities) # This should work
If you’re still running into trouble, it’s a good idea to double-check that the STT provider plugin is installed and imported correctly. I’m here if you need any more help!
Sources: STT | LiveKit Agents | STT | LiveKit Agents | livekit-agents/livekit/agents/voice/agent_activity.py