Menu

1 / 3

Build realtime voice agents on AI Gateway

Vercel News·Jerilyn Zheng·8 days ago
#bjP4NBzA
#vercel#model#gateway#realtime#article
Reading 0:00
15s threshold

AI Gateway now supports audio/voice. You can add realtime voice, text to speech, and speech to text with the same calls you already use for text, image, and video, routed through AI Gateway alongside every other modality.

Audio launches with models from OpenAI and xAI . Each call gets the same provider routing, observability, spend controls, and bring-your-own-key support you already use for your other models.

These capabilities are in beta and available in AI SDK 7.

Copy link to heading Getting started

Realtime, speech, and transcription model are supported on AI SDK 7 .

npm install ai @ai-sdk/react @ai-sdk/gateway

Copy link to heading Realtime voice agents

Realtime turns your app into something a user can hold a conversation with. When they speak, the model responds right away. Because it replies in the moment instead of waiting for a full turn, users can interrupt and talk over it the way they would with a person.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.