Is it possible to use openAI realtime for transcri...
# ask-ai
m
Is it possible to use openAI realtime for transcription (STT) exclusively but use a different LLM= and STT=?
t
Thanks for reaching out, Alexander. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! You can definitely use OpenAI just for transcription (STT) while choosing a different LLM and TTS provider in LiveKit. The great thing about LiveKit’s modular setup is that it lets you pick and choose providers for STT, LLM, and TTS separately—so you’re in control. For instance, here’s how you might set up an agent session using OpenAI for STT, another LLM, and a different TTS provider:
Copy code
from livekit.plugins import openai, google, cartesia

session = AgentSession(
    stt=openai.STT(model="whisper-1"),
    llm=google.LLM(model="gemini-1.5-pro"),
    tts=cartesia.TTS(model="sonic-english", voice="male-1"),
)
And if you just want to use OpenAI STT on its own, like for transcription-only setups, that works perfectly too—no need to include LLM or TTS if you don’t want to. This way, you can mix and match whatever fits your needs best. Sources: LiveKit Agents integrations | LiveKit Docs | OpenAI STT integration guide | LiveKit Docs | OpenAI integration guide | LiveKit Docs | examples/other/transcription/transcriber.py | OpenAI Realtime API integration guide | LiveKit Docs
m
Um uou picked whisper-1. I want realtime API.
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!