Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.02 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.02 KB

AICaller

Make outbound call with ChatGPT Realtime API.

Prerequisites

  • Twilio
  • OpenAI
    • API Key (You can signup here)

Setup

Update the .env

Rename .env.example into .env and type the credentials for Twilio and OpenAI.

Run

Highly recommend to use virtual env to run this project.

git clone https://github.com/soulee-dev/AICaller
pip install -r requirements.txt
python main.py

Open an ngrok tunnel

Copy Forwarding URL. It will look something like: https://[ngrok-subdomain].ngrok.app

Test the app

http://localhost:8000/docs

  1. Access to interactive docs
  2. Choose create-call endpoint
  3. Fill the parameters and call the API.

For stream_url, type wss://[ngrok-subdomain].ngrok.app/media-stream