I have my own modal for stt deployed in a server c...
# ask-ai
p
I have my own modal for stt deployed in a server can i use it in my agent stt directly?
t
Thanks for reaching out, Yassine. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I understand you'd love to use your custom STT model directly with LiveKit's agent STT, but unfortunately, that's not possible right out of the box. The good news is, you can still make it work by creating a custom STT node. Here’s how you can approach it: • Create a new plugin or tweak your agent code to define an
STT
class that inherits from
stt.STT
. • Set up configuration options inside the
__init__
method for your custom model, like the server URL and API key. • Implement the
stream
method to manage connecting to your server and handling audio input along with transcript output. This way, you can smoothly integrate your custom server with LiveKit's framework. If you’d like, I’m here to help you step-by-step with the implementation—just let me know! Sources: Speech-to-text (STT) models | LiveKit Docs | livekit-plugins/livekit-plugins-turn-detector/README.md | Large language models (LLM) | LiveKit Docs