Spaces:
Running
Running
metadata
title: LangVoice API
emoji: 🎙️
colorFrom: purple
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
LangVoice API - Hugging Face Deployment
This Space runs the LangVoice Text-to-Speech API backend.
Setup
Required Secrets
Set the following secrets in your Hugging Face Space settings:
- GITHUB_TOKEN - Personal access token with
reposcope to clone the private langvoice repository - MONGODB_URL - MongoDB connection string (e.g.,
mongodb+srv://user:pass@cluster.mongodb.net/langvoice) - SECRET_KEY - JWT secret key for authentication
Optional Environment Variables
ADMIN_EMAIL- Admin user email (default: admin@langvoice.com)ADMIN_PASSWORD- Admin user passwordDEBUG- Set totruefor debug mode
API Endpoints
Once deployed, the API will be available at:
- API Docs:
https://your-space.hf.space/docs - Health Check:
https://your-space.hf.space/health - OpenAPI JSON:
https://your-space.hf.space/openapi.json
Features
- 28+ natural voices across American and British English
- 9 languages including English, Spanish, French, Hindi, Japanese
- Multi-voice conversations for dialogues
- Rate limiting with custom per-user limits
- JWT and API key authentication