curl -X POST https://kurdishtts.dks.news/api/tts \
-H 'Content-Type: application/json' \
-d '{"text": "Ziman nasnameya me ye.", "dialect": "kmr"}' \
-o speech.mp3
const r = await fetch('https://kurdishtts.dks.news/api/tts', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ text: 'زمان ناسنامەی ئێمەیە.', dialect: 'ckb' }),
});
const audio = new Audio(URL.createObjectURL(await r.blob()));
audio.play();
import time, requests
API = "https://kurdishtts.dks.news"
H = {"Authorization": "Bearer YOUR_API_KEY"}
job = requests.post(f"{API}/api/tts/jobs", headers=H,
json={"text": open("article.txt").read(), "dialect": "kmr"}).json()
while job["status"] in ("queued", "running"):
time.sleep(5)
job = requests.get(f"{API}/api/tts/jobs/{job['id']}", headers=H).json()
if job["status"] == "done":
open("article.mp3", "wb").write(requests.get(API + job["audio_url"]).content)
| Method | Path | Body / result | Auth |
|---|---|---|---|
| POST | /api/tts | {text, dialect} → audio/mpeg | — |
| POST | /api/tts/jobs | {text, dialect} → {id, status, …} (202) | Bearer |
| GET | /api/tts/jobs/{id} | {status, ahead, seconds, audio_url, error} | Bearer |
| GET | /api/tts/audio/{key}.mp3 | audio/mpeg | — |
| GET | /api/tts/health | {ok, models, queue} | — |
dialect: kmr (Kurmancî, Latin) · ckb (Soranî, Arabic script). status: queued · running · done · failed.
- 600
- 8 / min
- 60 000
- MP3
400 bad dialect / empty text · 401 key missing or unknown · 404 no such job · 413 text too long · 429 too many requests
Voice: KurdAi Voice (kurdishtts.dks.news), using MMS-TTS by Meta AI /
razhan/mms-tts-ckb, licensed CC BY-NC 4.0 (creativecommons.org/licenses/by-nc/4.0)
Terms