koushik444/speech-ai-backend
0
VoxFlow AI ๐๏ธโก
A high-performance, real-time speech-to-speech AI platform optimized for Hugging Face Spaces (Backend) and Vercel (Frontend).
๐ Features
- Real-time Voice Chat: Low-latency WebSocket-based audio streaming.
- Cloud Powered: Optimized with Groq (STT/LLM) and Edge-TTS for lightning-fast, free-tier performance.
- Monolith Architecture: Single container running Gateway, STT, LLM, and TTS services.
๐ Deployment Guide
Backend (Hugging Face)
- Create a new Docker Space on Hugging Face.
- Upload this repository.
- Add the following Secrets in Settings:
GROQ_API_KEY: Your key from Groq Cloud.REDIS_URL: Your REST URL from Upstash Redis.- Add the following Variables in Settings:
STT_PROVIDER:groqLLM_PROVIDER:groqPROVIDER:edge-tts
Frontend (Vercel)
- Import this repository to Vercel.
- Set the Root Directory to
frontend. - Add Environment Variables:
NEXT_PUBLIC_API_URL: Your HF Space URL (https).NEXT_PUBLIC_WS_URL: Your HF Space URL (wss).
๐ Project Structure
- `frontend/`: Next.js 14 web application.
- `backend/`: Python microservices (Gateway, STT, LLM, TTS) consolidated for monolith deployment.
- `Dockerfile`: Root Docker configuration for Hugging Face Spaces.
- `supervisord.conf`: Process manager configuration for the backend monolith.
This Space runs a FastAPI monolith managed by supervisord.
