Does gpt-realtime have a text output modality?
# ask-ai
b
Does gpt-realtime have a text output modality?
t
Thanks for reaching out, Sebastian. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, GPT-realtime does offer a text output modality! By default, it supports both text and audio, but you can easily configure it to provide text-only output if that better suits your needs. For instance, in Python, you can set it up like this:
Copy code
llm = openai.realtime.RealtimeModel(modalities=["text"])
This setup can be really handy if you'd like to take advantage of the model's advanced speech understanding while handling the speech output separately through a text-to-speech (TTS) system. Sources: Realtime model plugins | LiveKit Docs | OpenAI Realtime API plugin guide | LiveKit Docs | OpenAI and LiveKit partner to turn Advanced Voice into an API | plugins/google/src/beta/realtime/realtime_api.ts | livekit-agents/livekit/agents/voice/agent_activity.py