Repository navigation
v0.0.4
Speech-to-speech AI chat implementation using OpenAI Realtime Console.
🎤 Speech-to-Speech AI Chat
Working Implementation
- Successfully integrated OpenAI's official Realtime Console template
- Speech-to-speech conversation with AI now functional
- Based on https://github.com/openai/openai-realtime-console
🛠 Journey to Success
Initial Challenges
- Multiple implementation attempts with various approaches
- Troubleshooting WebRTC vs WebSocket configurations
- API model naming and endpoint issues
- Authentication and token generation complexities
Final Solution
- Used OpenAI's official example as foundation
- WebRTC implementation for optimal audio performance
- Proper ephemeral token authentication
- React + Vite + Express.js stack
📁 Project Structure
Clean Organization
- Working implementation in
/web/directory - Trial attempts moved to
/trials/(gitignored) - Official OpenAI template successfully integrated
- Ready for customization and feature development
🚀 Development Setup
cd web
npm install
cp .env.example .env
# Add your OpenAI API key to .env
npm run dev🎯 Next Steps
With the foundation working, we can now:
- Customize the React interface to our needs
- Remove unnecessary template bloat
- Add custom features and styling
- Build the voice chat experience we envision
The speech-to-speech journey begins here! 🗣️✨