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

FieldTypeRequiredDescription
textstringyesText to synthesise.
voice_idstringyesEdge voice id from GET /api/edge-tts (e.g. en-US-AriaNeural, tr-TR-EmelNeural). An unknown id returns 400 with the list of available voices.
ratenumberno0 – 200, default 100 (normal speed).
pitchnumberno-50 – 50, default 0 (normal pitch).
volumenumberno0 – 100, default 100.
stylestringnoOptional speaking style, for voices that list style values.
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.mp3

GET/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.

Search docs

Find a page or an endpoint