https://github.com/shakibhasan09/twilio-voice-openai
A Golang application that integrates Twilio Voice with OpenAI's language models. This project enables voice interactions powered by AI, allowing for intelligent phone call handling, voice-based chatbots, or automated customer service systems.
https://github.com/shakibhasan09/twilio-voice-openai
golang openai realtime twilio-voice voice-assistant
Last synced: 6 months ago
JSON representation
A Golang application that integrates Twilio Voice with OpenAI's language models. This project enables voice interactions powered by AI, allowing for intelligent phone call handling, voice-based chatbots, or automated customer service systems.
- Host: GitHub
- URL: https://github.com/shakibhasan09/twilio-voice-openai
- Owner: shakibhasan09
- License: other
- Created: 2024-10-12T14:26:49.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-15T14:01:14.000Z (12 months ago)
- Last Synced: 2025-04-10T14:40:47.511Z (6 months ago)
- Topics: golang, openai, realtime, twilio-voice, voice-assistant
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang Twilio Voice + OpenAI Integration
This project integrates Twilio Voice with OpenAI's language models using Golang. It enables AI-powered voice interactions, allowing for intelligent phone call handling, voice-based chatbots, or automated customer service systems.
## Features
- Seamless integration of Twilio Voice API and OpenAI's GPT models
- Real-time speech-to-text and text-to-speech conversion
- Dynamic conversation flow based on AI responses
- Customizable AI personality and knowledge base
- Scalable architecture for handling multiple concurrent calls## Prerequisites
- Go 1.16 or higher
- Twilio account and API credentials
- OpenAI API key## Installation
1. Clone the repository:
```
git clone https://github.com/shakibhasan09/twilio-voice-openai.git
cd twilio-voice-openai
```2. Install dependencies:
```
go mod tidy
```3. Set up environment variables:
```
cp .env.example .env
```## Usage
1. Start the server:
```
go run main.go
```2. Configure your Twilio phone number to point to your server's webhook URL.
3. Make a call to your Twilio number to interact with the AI-powered voice system.
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Acknowledgements
- [Twilio Go Library](https://github.com/twilio/twilio-go)
- [OpenAI Go Client](https://github.com/sashabaranov/go-openai)
- [Gorilla Mux Router](https://github.com/gorilla/mux)## Contact
If you have any questions or feedback, please open an issue on this repository or contact me at shakibhasan.me09@gmail.com