Voice AI is a full-stack conversational assistant with speech-to-text, text generation, and text-to-speech support.
- FastAPI backend for chat, transcription, and voice chat flows
- Groq-powered LLM responses
edge_tts-based speech generation- CORS configuration for local frontend development
backend/- FastAPI application, services, and API routesfrontend/- frontend workspace placeholder for the client application
- Copy the environment template and fill in your keys:
cp .env.example backend/.env- Create or activate the backend virtual environment and install dependencies:
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Start the backend API:
uvicorn app.main:app --reloadIf you prefer running from the repository root, use:
./backend/venv/bin/uvicorn app.main:app --reload --app-dir backendThe backend reads these values from .env:
GROQ_API_KEY- required for chat and transcription featuresCORS_ORIGINS- comma-separated list of allowed frontend originsLOG_LEVEL- application log level, defaults toINFO
- The backend currently uses an in-memory conversation store.
- Audio uploads accept
.mp3,.wav,.m4a,.mp4, and.flac. - The generated TTS files are temporary and removed after response delivery.