-
Setup is based on:
https://www.twilio.com/en-us/blog/voice-ai-assistant-openai-realtime-api
First create a .env file in the root directory of your project.
edit it with text editor and add the following line:
OPENAI_API_KEY=your_openai_api_key
Use command
uvicorn main:app --host 0.0.0.0 --port 5050PORT=your_port_numberSet up a twillio account and get a phone number. Configure the webhook to point to your server's URL (from the port tunneling service) followed by /incoming-call endpoint.zrok enable YOUR_TOKENzrok share public --headless http://localhost:5050