Text-to-Speech API
# 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