what is this error message: AttributeError: 'STT' ...
# ask-ai
a
what is this error message: AttributeError: 'STT' object has no attribute 'capabilities'
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.
Hey there! That error message
AttributeError: '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:
Copy code
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