Skip to content

Caastlefox/AI_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

    An AI Agent reading a local database with a voice interface based on twillio

    Setup is based on: https://www.twilio.com/en-us/blog/voice-ai-assistant-openai-realtime-api

  1. Create .env file
  2. 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
        

  3. You can start the server
  4. Use command

    uvicorn main:app --host 0.0.0.0 --port 5050

    if you want to change the port number you can add the following line to .env file
    PORT=your_port_number

  5. Set up a port tunneling service
  6. In this example we use zrok. Download and register to zrok. Afterwards run following commands:
    zrok enable YOUR_TOKEN 
    zrok share public --headless http://localhost:5050

  7. Configure twillio
  8. Set 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.

References

code based on: https://www.twilio.com/en-us/blog/voice-ai-assistant-openai-realtime-api-python

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages