This application demonstrates how to integrate Twilio Voice and OpenAI's Realtime API using Media Streams. The application proxies WebSocket connections between OpenAI and Twilio, allowing a caller to talk to an AI agent in realtime.
This project is available in multiple programming languages.
The code for this sample is available on GitHub to view.
You will need an Account SID and Auth Token in order to run this code.
Checking for existing account...
Follow the setup instructions in the README to get the sample up and running.