🎙 Edge TTS Tester

Text-to-Speech API

🔐 API Key

Not Connected

📝 Text to Speech

Voice Selection
Text Input
Voice Settings
SSML auto-enabled. Best with en-US-JennyNeural. Not all voices support all styles.

📚 API Usage

# Health check (public)
curl https://tts.ai-api.ancbd.com/health

# List voices (requires API key)
curl https://tts.ai-api.ancbd.com/voices?q=en-US -H "X-API-Key: YOUR_KEY"

# Generate speech - basic
curl -X POST https://tts.ai-api.ancbd.com/tts \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"text":"Hello!","voice":"en-US-JennyNeural"}' --output speech.mp3

# Generate speech - with emotion (use_ssml MUST be true)
curl -X POST https://tts.ai-api.ancbd.com/tts \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"text":"I am so happy!","voice":"en-US-JennyNeural","style":"cheerful","use_ssml":true}' \
  --output speech.mp3