Skip to content

Latest commit

Β 

History

History
92 lines (74 loc) Β· 2.2 KB

File metadata and controls

92 lines (74 loc) Β· 2.2 KB

🎯 AI Voice Chat Application

Python 3.8+ Flask License: MIT

πŸš€ Overview

Real-time AI voice chat application using OpenAI's GPT-4, Flask, and WebRTC. Have natural conversations with AI and receive call summaries via email.

⭐ Key Features

  • Real-time voice communication with AI
  • Call duration tracking and summaries
  • Email notifications for call records
  • WebRTC for high-quality audio
  • Responsive web interface

πŸ—οΈ Project Structure

ai-voice-chat/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ static/
β”‚   β”‚   β”œβ”€β”€ css/
β”‚   β”‚   └── js/
|   |   └── assets/
β”‚   β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ app.py
β”‚   └── .env.example
β”œβ”€β”€ requirements.txt
└── README.md

πŸ“‹ Prerequisites

  • Python 3.8+
  • OpenAI API key
  • SMTP server access

⚑ Quick Start

# Clone repository
git clone https://github.com/muhammadusman93333/openai_realtime_api.git
cd openai_realtime_api

Configure environment

copy .env.example .env

Edit .env with your credentials

Example .env file

SMTP_HOST=your-smtp-host
SMTP_PORT=465
SMTP_USERNAME=your-email
SMTP_PASSWORD=your-password
RECEIVING_EMAIL=recipient-email
OPENAI_API_KEY=your-openai-key

Setup virtual environment (Windows)

python -m venv venv
venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt
# Run application
python src/app.py

The application will be available at http://127.0.0.1:5000/.

Access: http://localhost:5000 πŸ“ License MIT License - See LICENSE

🀝 Contributing Fork repository Create feature branch Commit changes Push to branch Open pull request πŸ“ž Support Issues: GitHub Issues Email: info@uvisionpk.com Documentation: Wiki 🌟 Keywords ai voice chat, openai gpt-4, flask application, webrtc, real-time communication, python web app, voice assistant

Made with ❀️ by uvisionpk.com ```