CoolFace
Apppublic

shidianshifen/openai-edge-tts

sourceHugging Facegpl-3.0updated 7mo agoView on Hugging Face
0likes
App README

OpenAI Edge TTS

OpenAI-compatible TTS API using Microsoft Edge's free online TTS service.

API Endpoints

  • —POST /v1/audio/speech - Text to Speech (OpenAI compatible)
  • —GET /v1/models - List available models
  • —GET /v1/audio/voices - List available voices

Usage

bash
curl -X POST https://YOUR_SPACE_URL/v1/audio/speech \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "input": "Hello, world!",
    "voice": "en-US-AvaNeural",
    "model": "tts-1"
  }' \
  --output speech.mp3