An AI-powered Voice Coding Assistant built using Flask, Sarvam AI, and Speech Recognition that converts voice or text prompts into clean production-ready code.
Users can speak or type their coding request, and the assistant generates executable code instantly.
- 🎤 Voice to text using Speech Recognition
- 🤖 AI-powered code generation using Sarvam AI
- 💻 Supports multiple languages:
- Java
- Python
- JavaScript
- C++
- C#
- 🧠 Clean architecture code generation
- 🎨 Modern UI inspired by VS Code
- 📋 Copy generated code easily
- ⚡ Fast and responsive
cd voice_coding_assistant
pip install -r requirements.txt
Open app.py
SARVAMAI_API_KEY = "your_api_key_here"
python app.py
- User speaks or types coding request
- Speech Recognition converts voice to text
- Flask backend sends prompt to Sarvam AI
- Sarvam AI generates production-ready code
- Code is displayed in UI
Frontend:
- HTML
- TailwindCSS
- JavaScript
Backend:
- Python
- Flask
AI:
- Sarvam AI API
Speech:
- Web Speech API
create spring boot rest api for user management
create fastapi crud application with postgres
create linked list in java
Never commit your API key publicly.
Use environment variables in production.
flask requests sarvamai
- Multi-language selector
- Download generated files
- Project generation
- Code execution
- VS Code extension
Built using Sarvam AI
Give it a star on GitHub ⭐



