API
Call tts-api.dangkhoabach.vn directly with a token from the Tokens page. Every request needs the Authorization header.
Limits: 30 requests a minute per token, and the daily quota shown on the Usage page.
GET
/v1/voicesList voices
curl -H "Authorization: Bearer $TTS_TOKEN" https://tts-api.dangkhoabach.vn/v1/voices
POST
/v1/speechFast speech (returns WAV) · ≤ 1.000
curl -H "Authorization: Bearer $TTS_TOKEN" -H "Content-Type: application/json" \
-d '{"text": "Xin chào", "voice": "vi_VN-vais1000-medium"}' \
-o speech.wav https://tts-api.dangkhoabach.vn/v1/speechPOST
/v1/jobsHigh-quality job · ≤ 20.000
curl -H "Authorization: Bearer $TTS_TOKEN" -H "Content-Type: application/json" \
-d '{"text": "Đoạn văn dài…", "voice": "Thùy Dung"}' \
https://tts-api.dangkhoabach.vn/v1/jobs
# → 202 {"id": "…", "status": "queued", …}GET
/v1/jobs/{id}Check the status, then download once status is done
curl -H "Authorization: Bearer $TTS_TOKEN" https://tts-api.dangkhoabach.vn/v1/jobs/<id> curl -H "Authorization: Bearer $TTS_TOKEN" -o job.wav https://tts-api.dangkhoabach.vn/v1/jobs/<id>/audio
Errors come as {"error": "…", "message": "…"}: 400 invalid_text / invalid_voice, 401 unauthorized, 404 not_found, 409 not_ready, 429 rate_limited / quota_exceeded / queue_full, 502 synthesis_failed.