langvoice / README.md
muhammadnoman76's picture
update
dde038e
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:

  1. GITHUB_TOKEN - Personal access token with repo scope to clone the private langvoice repository
  2. MONGODB_URL - MongoDB connection string (e.g., mongodb+srv://user:pass@cluster.mongodb.net/langvoice)
  3. SECRET_KEY - JWT secret key for authentication

Optional Environment Variables

  • ADMIN_EMAIL - Admin user email (default: admin@langvoice.com)
  • ADMIN_PASSWORD - Admin user password
  • DEBUG - Set to true for 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