Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sm0k367/avatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Eco Avatar - AI Conversational Assistant

Real-time AI conversational avatar powered by OpenAI GPT-4.

🚀 Deploy to Vercel in 2 Minutes

Deploy with Vercel

Quick Deploy Steps:

  1. Click "Deploy" button above or go to: https://vercel.com/new
  2. Import repository: Sm0k367/eco-avatar
  3. Add environment variable:
  4. Click "Deploy"
  5. Done! Your app is live in ~2 minutes 🎉

✨ Features

  • AI Chat - Powered by GPT-4
  • Voice Recording - Speech-to-text with Whisper
  • Modern UI - Beautiful dark theme interface
  • Mobile Responsive - Works on all devices
  • Real-time - Instant AI responses
  • Customizable - Settings for voice, speed, volume

📁 Project Structure

eco-avatar/
├── api/                    # Vercel Serverless Functions
│   ├── chat.py            # AI chat endpoint
│   ├── transcribe.py      # Audio transcription
│   └── health.py          # Health check
├── public/                 # Static frontend
│   ├── index.html         # Main page
│   ├── styles.css         # Styling
│   └── app.js             # Frontend logic
├── requirements.txt        # Python dependencies
├── vercel.json            # Vercel configuration
└── README.md              # This file

🔑 Environment Variables

Required:

  • OPENAI_API_KEY - Your OpenAI API key

How to add in Vercel:

  1. Go to Project Settings → Environment Variables
  2. Add OPENAI_API_KEY with your key
  3. Select all environments (Production, Preview, Development)
  4. Redeploy

🧪 API Endpoints

  • GET /api/health - Health check
  • POST /api/chat - Send message to AI
  • POST /api/transcribe - Transcribe audio

Test Health Endpoint:

curl https://your-app.vercel.app/api/health

Test Chat:

curl -X POST https://your-app.vercel.app/api/chat \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello!", "session_id": "test"}'

💰 Cost

  • Vercel: Free tier (100 GB bandwidth/month)
  • OpenAI API: Pay-as-you-go (~$5-20/month depending on usage)

🛠️ Local Development

# Install Vercel CLI
npm install -g vercel

# Clone repository
git clone https://github.com/Sm0k367/eco-avatar.git
cd eco-avatar

# Run locally
vercel dev

📝 License

MIT License - feel free to use and modify!

📞 Support


Built with 💜 by Epic Tech AI

Ready to deploy? Click the button above or visit: https://vercel.com/new

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors