Question
Is native TypeScript/Node.js supported for integrating Twilio Agent Connect with OpenAI GPT-Live, or is a Python gateway required because GPTLiveProvider is specific to the Python SDK?
Product
Twilio Agent Connect
Answer
Native TypeScript/Node.js is supported, and you don't need a Python gateway.
GPTLiveProvider isn't specific to Python. Starting with Twilio Agent Connect TypeScript SDK v2.4.0, the twilio-agent-connect npm package includes the same GPT-Live provider as the Python SDK. It connects Twilio Media Streams directly to GPT-Live and handles interruptions, turn-taking, and tool-call delegation.
If you're running Python middleware only to reach GPT-Live, you can remove it:
- Use Node.js 22.13 or later.
- Upgrade the SDK to v2.4.0 or later:
npm install twilio-agent-connect@latest -
Import the GPT-Live configuration from the SDK:
import { TAC, TACConfig, TACServer, VoiceChannel, GPTLiveProviderConfig, TWILIO_AUDIO_FORMAT_FOR_GPT_LIVE } from 'twilio-agent-connect'; - Pass a
GPTLiveProviderConfigtoVoiceChannel.VoiceChannelworks with any provider: the config you pass decides whether it runs Conversation Relay, GPT Realtime, or GPT-Live.
You also need an OpenAI API key from a project that has GPT-Live access.
To implement native GPT-Live support and remove the Python middleware, follow the native implementation architecture provided in the official examples repository: Twilio Agent Connect TypeScript GPT-Live Example.
Additional Information
- Twilio Agent Connect TypeScript GPT-Live Example
- Tutorial: How to Build a Voice AI Agent with OpenAI's GPT-Live, Twilio Agent Connect, and TypeScript
- SDK reference: Twilio Agent Connect (TypeScript)
- Source, releases, and issues: twilio/twilio-agent-connect-typescript