Text to speech
Edge TTS
Budget voices for everyday narration.
Microsoft Edge neural voices. 1 credit per 10 characters (Math.ceil — e.g. 250 chars = 25 cr).
POST/api/edge-tts
Returns the MP3 binary directly (no polling). Response headers: X-Credits-Used, X-Characters, X-Job-Id and, when known, X-Credits-Remaining.
Request body
cURL
curl -X POST "https://www.dubvoice.ai/api/edge-tts" \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{ "text": "Hello world", "voice_id": "en-US-AriaNeural", "rate": 100, "pitch": 0 }' \
--output out.mp3GET/api/edge-tts
Returns the full Edge voice catalogue (393 voices, 116 languages) and the pricing:
JSON
{
"voices": [{ "id": "en-US-AriaNeural", "name": "Aria", "language": "English (US)", "locale": "en-US", "gender": "female", "style": ["chat", "cheerful", ...] }, ...],
"pricing": { "rate": "10 characters = 1 credit", "discount": "90% cheaper than ElevenLabs" }
}style is present only on voices that support speaking styles.