Kurdish TTS & STT API
A simple HTTP API for Kurdish text-to-speech and speech-to-text. Text-to-speech covers Sorani (Central Kurdish), Kurmanji (Northern Kurdish) and Badini (Behdinî — Northern Kurdish in the Arabic script, with six dedicated voices), and 23 more languages through the V6 voices. Speech-to-text covers Sorani, Kurmanji and Badini, and 100 more languages. Send text, get natural speech from hundreds of voices; or send audio, get an accurate transcript — by file upload, or live streaming for the Kurdish dialects. There is a free tier, and paid plans start at $12/month, or pay yearly and save 20%.
Machine-readable spec: OpenAPI 3.1 (/openapi.json). Get an API key in Settings → API. See pricing & plans. New here? Start with the step-by-step guides.
Authentication
All endpoints except GET /api/get-speakers require an API key in the x-api-key request header. Base URL: https://www.kurdishtts.com.
TTS and STT use separate keys. A TTS key authenticates the text-to-speech endpoint; an STT key authenticates the speech-to-text endpoints. They are not interchangeable — a TTS key returns 401 against an STT endpoint. Generate both in Settings → API. Keep keys server-side; never ship them in client code.
Languages
Text-to-speech reads the three Kurdish dialects with the Kurdish voices, and the 23 other languages below with the V6 voices (global_1 to global_34). Set dialect to a dialect or a language code. A language other than Kurdish needs a V6 voice; the V6 voices also read Kurdish. Inside one request, [lang:<language>] switches the language in the text; see Switch language inside the text.
soraniSoranikurmanjiKurmanjibadiniBadiniarerebîdadanîmarkîdealmanîelyûnanîenîngilîzîesspanîfifînîfrfransizîheîbranîhihindîitîtalîjajaponîkokoreyîmsmalezînlholendînonorwecîplpolonîptportugalîrurûsîsvswêdîswswahîlîtrtirkîzhçînî
- Word timestamps (
include_timestamps) are Kurdish only. - Moods (
emotion) are not on the API. Sound tags such as[laugh]work as before. - Which voices your key may use is in List voices.
Speech-to-text takes dialect = sorani, kurmanji or badini for Kurdish, or multilingual for the 100 languages in the table. With multilingual you may add language (a code from the table); leave it out and the language is detected, and the reply's language field is the detected one. File upload works for every language. Live streaming is Sorani, Kurmanji and Badini only.
All 100 speech-to-text languages
| Code | Language | Own name |
|---|---|---|
af | afrîkansî | |
am | amharî | አማርኛ |
ar | erebî | العربية |
as | asamî | অসমীয়া |
az | azerbaycanî | Azərbaycan |
ba | başkîrî | Башҡорт |
be | belarûsî | Беларуская |
bg | bulgarî | Български |
bn | bengalî | বাংলা |
bo | tîbetî | བོད་སྐད་ |
br | bretonî | Brezhoneg |
bs | bosnî | Bosanski |
ca | katalanî | Català |
cs | çekî | Čeština |
cy | weylsî | Cymraeg |
da | danîmarkî | Dansk |
de | almanî | Deutsch |
el | yûnanî | Ελληνικά |
en | îngilîzî | |
es | spanî | Español |
et | estonî | Eesti |
eu | baskî | Euskara |
fa | farisî | فارسی |
fi | fînî | Suomi |
fo | ferî | Føroyskt |
fr | fransizî | Français |
gl | galîsî | Galego |
gu | gujaratî | ગુજરાતી |
ha | hawsayî | |
haw | hawayî | ʻŌlelo Hawaiʻi |
he | îbranî | עברית |
hi | hindî | हिन्दी |
hr | xirwatî | Hrvatski |
ht | haîtî | |
hu | macarî | Magyar |
hy | ermenî | Հայերեն |
id | endonezyayî | Bahasa Indonesia |
is | îzlendî | Íslenska |
it | îtalî | Italiano |
ja | japonî | 日本語 |
jw | javayî | Jawa |
ka | gurcî | Ქართული |
kk | qazaxî | Қазақ тілі |
km | khmerî | ខ្មែរ |
kn | kannadayî | ಕನ್ನಡ |
ko | koreyî | 한국어 |
la | latînî | |
lb | luksembûrgî | Lëtzebuergesch |
ln | lingalayî | Lingála |
lo | lao | ລາວ |
lt | lîtwanî | Lietuvių |
lv | latvîyayî | Latviešu |
mg | malagasî | |
mi | maorî | |
mk | makedonî | Македонски |
ml | malayalamî | മലയാളം |
mn | moxolî | Монгол |
mr | maratî | मराठी |
ms | malezî | Bahasa Melayu |
mt | maltayî | Malti |
my | burmayî | မြန်မာ |
ne | nepalî | नेपाली |
nl | holendî | Nederlands |
nn | norwecî (nynorsk) | Norsk nynorsk |
no | norwecî | Norsk |
oc | oksîtanî | |
pa | puncabî | ਪੰਜਾਬੀ |
pl | polonî | Polski |
ps | peştûyî | پښتو |
pt | portugalî | Português |
ro | romanî | Română |
ru | rûsî | Русский |
sa | sanskrîtî | संस्कृत भाषा |
sd | sindhî | سنڌي |
si | kîngalî | සිංහල |
sk | slovakî | Slovenčina |
sl | slovenî | Slovenščina |
sn | şonayî | ChiShona |
so | somalî | Soomaali |
sq | arnawidî | Shqip |
sr | sirbî | Српски |
su | sundanî | Basa Sunda |
sv | swêdî | Svenska |
sw | swahîlî | Kiswahili |
ta | tamîlî | தமிழ் |
te | telûgûyî | తెలుగు |
tg | tacikî | Тоҷикӣ |
th | tayî | ไทย |
tk | tirkmenî | Türkmen dili |
tl | fîlîpînî | |
tr | tirkî | Türkçe |
tt | teterî | Татар |
uk | ukraynî | Українська |
ur | urdûyî | اردو |
uz | ozbekî | O‘zbek |
vi | vîetnamî | Tiếng Việt |
yi | yidîşî | ייִדיש |
yo | yorubayî | Èdè Yorùbá |
zh | çînî | 中文 |
yue | kantonî | 粵語 |
Text-to-Speech — POST /api/tts-proxy
V6 generates all speech. Some voice IDs appear in both v4 and v5. Use the same catalog when listing voices and generating speech.
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to synthesize. Max 500 chars (free) / 5000 (paid). Sound tags such as [laugh] are supported — see Sound tags below. [lang:<language>] switches the language inside the text — see Switch language inside the text. |
speaker_id | string | Yes | Built-in id from /api/get-speakers, or an owned clone_ id from the Voice Cloning page. Clone API use requires a paid subscription. |
dialect | "sorani" | "kurmanji" | "badini" | a language code | No | Reading language: a Kurdish dialect or one of the 23 language codes in Languages. Inferred from the speaker_id prefix when a Kurdish voice has one. Required for a V6 voice (global_1 to global_34). Another language needs a V6 voice. Send it for the Cast and Studio speakers: they read Sorani or Kurmanji and otherwise default to the Sorani of their reference clip. This is the language the text starts in; [lang:<language>] in the text switches it. Badini (Behdinî) is Northern Kurdish in the Perso-Arabic script and has its own six badini_ speakers — a badini_ id resolves on v5 whatever model_version you send, and pairing dialect 'badini' with a Kurdish voice other than a badini_ one (a Cast or Studio speaker, say) is refused with a 400. A V6 voice reads Badini too. |
model_version | "v3" | "v4" | "v5" | "v6" | No | The default catalog is v3. To use another catalog, send its model_version. |
include_timestamps | boolean | No | Default false. true → JSON with base64 audio + word timestamps. Allowed when the starting language is Kurdish; words come back for the Kurdish parts only. When the request starts in another language it is refused with 400. |
format | "wav" | "opus" | "mp3" | No | Default wav. opus = Ogg/Opus at 24 kHz, ~10–15× smaller — ideal for mobile data. mp3 is also 24 kHz. Ignored when include_timestamps is true. |
speed | number | No | 0.25–4.0, higher = faster (industry convention; inverted internally). |
temperature / stability | number | No | Optional generation controls. Mutually exclusive; omit both for the engine default. |
seed | integer | No | Optional reproducibility control. |
pitch, top_p, repetition_penalty… | number | No | Optional advanced and post-processing controls; forwarded to V6 for compatibility. |
Sound tags
Put [laugh], [chuckle], [sigh], [gasp], [cough] or [sniff] in text and the voice makes that sound at that point, for example "Silav, tu çawa yî? [laugh]". Any other text in square brackets that starts with a letter (up to 30 characters) is not spoken. It is listed, comma-separated and percent-encoded, in the X-Dropped-Tags response header, and in generation.dropped_tags when include_timestamps is true. Numbers in brackets, like [5], are ordinary text.
Switch language inside the text
Put [lang:<language>] in text and what follows is read in that language until the next tag. dialect is the language the text starts in; to switch back, name it again (for example [lang:sorani]). <language> is one of the language codes listed under Languages, or sorani, kurmanji or badini; anything else is a 400. Tags are matched case-insensitively. Any language other than Kurdish needs a V6 voice (global_1 to global_34), as dialect does. Tag characters count toward the characters you are billed, like the sound tags. The response has an X-Languages header listing every language spoken, in order of first use (for example ckb,en,ar). Word timestamps are allowed when the starting language is Kurdish; words come back for the Kurdish parts only.
{
"text": "Silav, tu çawa yî? [lang:en] Welcome to our service.",
"speaker_id": "global_1",
"dialect": "kurmanji",
"model_version": "v6"
}Example — cURL
curl -X POST https://www.kurdishtts.com/api/tts-proxy \
-H "x-api-key: YOUR_TTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"سڵاو، چۆنیت؟","speaker_id":"sorani_1","model_version":"v4"}' \
--output speech.wavExample — Python
import requests
resp = requests.post(
"https://www.kurdishtts.com/api/tts-proxy",
headers={"x-api-key": "YOUR_TTS_API_KEY"},
json={"text": "سڵاو، چۆنیت؟", "speaker_id": "sorani_1", "model_version": "v4"},
)
with open("speech.wav", "wb") as f:
f.write(resp.content)Example — JavaScript
const res = await fetch("https://www.kurdishtts.com/api/tts-proxy", {
method: "POST",
headers: {
"x-api-key": "YOUR_TTS_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ text: "سڵاو، چۆنیت؟", speaker_id: "sorani_1", model_version: "v4" }),
});
const audio = await res.arrayBuffer(); // audio/wavExample — German with a V6 voice (cURL)
curl -X POST https://www.kurdishtts.com/api/tts-proxy \
-H "x-api-key: YOUR_TTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Guten Tag, wie geht es Ihnen?","speaker_id":"global_1","dialect":"de","model_version":"v6"}' \
--output german.wavExample — German (Python)
import requests
resp = requests.post(
"https://www.kurdishtts.com/api/tts-proxy",
headers={"x-api-key": "YOUR_TTS_API_KEY"},
json={
"text": "Guten Tag, wie geht es Ihnen?",
"speaker_id": "global_1", # Zana, a V6 voice a free key may use
"dialect": "de", # the language to read
"model_version": "v6",
},
)
with open("german.wav", "wb") as f:
f.write(resp.content)Example — German (JavaScript)
const res = await fetch("https://www.kurdishtts.com/api/tts-proxy", {
method: "POST",
headers: {
"x-api-key": "YOUR_TTS_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
text: "Guten Tag, wie geht es Ihnen?",
speaker_id: "global_1", // Zana, a V6 voice a free key may use
dialect: "de", // the language to read
model_version: "v6",
}),
});
const audio = await res.arrayBuffer(); // audio/wavExample: owned cloned voice
curl -X POST https://www.kurdishtts.com/api/tts-proxy -H "x-api-key: YOUR_TTS_API_KEY" -H "Content-Type: application/json" -d '{"text":"سڵاو، چۆنیت؟","speaker_id":"clone_YOUR_CLONE_ID","dialect":"sorani"}' --output cloned-voice.wavGood to know
speedfollows the industry convention: higher = faster.format: "opus"returnsaudio/ogg(Opus, 24 kHz) — the response is ~10–15× smaller than WAV.formatonly applies to binary responses; the JSON/timestamps response stays base64 PCM.v3andv4are permanent speaker-group selectors, not a deprecated path. Existing speaker IDs and plan entitlements do not change, and will not.- Any paid API plan may select
v5and render its 20 curated speakers and all sixbadini_ones. The 13 Cast and Studio speakers and the 34 V6 voices (v6) are listed to everyone for discovery but render only on plans bought for the API — Developer, Pro, Business, and the legacystarter,starter-v4andapi-pro— except two V6 voices,global_1andglobal_2, which Free and Creator keys may render too. Naming any other one on another plan returns403withupgrade_required. - What a plan sees inside a group is not uniform. Free gets four speakers each from
v3andv4, plusbadini_story_mandbadini_narrator_fonv5and the two V6 voicesglobal_1andglobal_2— its only access to that group; the legacy plans are deliberately lopsided (starterhas everyv3speaker but four fromv4;starter-v4is the reverse). Settings → API lists exactly what your key can call. - Creator, Developer, Pro, and Business may send an owned
clone_…ID. Free accounts cannot use cloned voices through the API. - Clone allowances are Creator 3, Developer 10, Pro 20, and Business 30. Free includes one clone for the fixed website preview only.
Text-to-Speech (streaming) — POST /api/tts-stream
Streams speech while it is being generated instead of waiting for the full file — for short sentences the first audio typically arrives in about a second. Same key, limits, and billing as /api/tts-proxy (characters are debited when the stream starts). SSE and PCM are progressive V6 streams. WAV remains accepted for backward compatibility but is buffered before the response begins.
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to synthesize. Max 500 chars (free) / 5000 (paid). Send sentence-by-sentence for the fastest first chunk. |
speaker_id | string | Yes | Built-in id from /api/get-speakers, or an owned clone_ id on a paid subscription. |
stream_format | "sse" | "pcm" | "wav" | No | Default sse (JSON events, base64 audio). pcm = progressive headerless 16-bit little-endian mono PCM at 24 kHz. wav = buffered compatibility response. |
dialect | "sorani" | "kurmanji" | "badini" | a language code | No | Reading language, exactly as on /api/tts-proxy: needed for a V6 voice and for the Cast and Studio speakers. |
model_version | "v3" | "v4" | "v5" | "v6" | No | Speaker group your speaker_id is resolved in, exactly as on /api/tts-proxy. Same values, same v3 default, same entitlements. Not a model or engine choice. |
speed | number | No | 0.25–4.0, higher = faster (same convention as /api/tts-proxy). |
include_timestamps | boolean | No | Kurdish only. Only the sse format can carry word timings; pcm and wav ignore this field. If the stream cannot supply them the request is refused with 400. For word timings, call POST /api/tts-proxy with include_timestamps: true. |
Example — cURL (raw PCM)
curl -N -X POST https://www.kurdishtts.com/api/tts-stream \
-H "x-api-key: YOUR_TTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Silav, tu çawa yî?","speaker_id":"kurmanji_236","model_version":"v4","stream_format":"pcm"}' \
--output speech.pcm
# play it: ffplay -f s16le -ar 24000 -ch_layout mono speech.pcmExample — JavaScript (raw PCM)
const res = await fetch("https://www.kurdishtts.com/api/tts-stream", {
method: "POST",
headers: {
"x-api-key": "YOUR_TTS_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
text: "Silav, tu çawa yî?",
speaker_id: "kurmanji_236",
model_version: "v4", // speaker group the id lives in — see "List voices"
stream_format: "pcm", // headerless 16-bit LE mono PCM @ 24000 Hz
}),
});
const reader = res.body.getReader();
while (true) {
const { done, value } = await reader.read();
if (done) break; // normal end of the HTTP response = end of speech
playPcmChunk(value); // Uint8Array of raw samples — feed your audio buffer
}Example — JavaScript (SSE)
const res = await fetch("https://www.kurdishtts.com/api/tts-stream", {
method: "POST",
headers: {
"x-api-key": "YOUR_TTS_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
text: "سڵاو، چۆنیت؟",
speaker_id: "sorani_1",
model_version: "v4", // speaker group the id lives in — see "List voices"
stream_format: "sse",
}),
});
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
let buf = "";
while (true) {
const { done, value } = await reader.read();
if (done) break;
buf += value;
const events = buf.split("\n\n");
buf = events.pop() ?? ""; // keep the trailing partial event
for (const line of events) {
if (!line.startsWith("data: ")) continue;
const evt = JSON.parse(line.slice(6));
if (evt.type === "speech.audio.delta") playBase64Pcm(evt.audio); // 16-bit PCM @ 24000 Hz
if (evt.type === "error") throw new Error(evt.error);
}
}Good to know
- PCM chunks after the first are about 2 seconds of audio (96,000 bytes at the default 24 kHz rate) — do not hard-code the chunk size; read until the response ends. The stream ends with the normal end of the HTTP response — there is no in-band end marker.
- A connection that drops mid-stream means generation failed — discard the audio and retry. In
ssemode you also get an in-banderrorevent. - Response headers describe the audio (
X-Sample-Rate: 24000,X-Channels: 1,X-Bit-Depth: 16) and echo the selected catalog inX-Model-Version.
Speech-to-Text (file upload) — POST /api/stt-proxy
Transcribes an uploaded audio file (WAV/MP3/FLAC/OGG/M4A) sent as multipart/form-data. Usage is metered the same way for every language: on minutes plans by the seconds of audio decoded (an empty transcript is not billed); on legacy credit plans one credit per transcription that returns text. Max file size and transcript length depend on your plan (free: 10 MB / 500 chars; starter: 50 MB / unlimited; pro: 100 MB / unlimited).
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Yes | Audio file (WAV/MP3/FLAC/OGG/M4A). |
dialect | "sorani" | "kurmanji" | "badini" | "multilingual" | Yes | Kurdish dialect of the audio, or multilingual for any of the 100 other languages. |
language | string | No | Only with multilingual: a code from the Languages table, for example de. Left out, the language is detected. |
Example — cURL
curl -X POST https://www.kurdishtts.com/api/stt-proxy \
-H "x-api-key: YOUR_STT_API_KEY" \
-F "file=@audio.wav" \
-F "dialect=sorani"Example — Python
import requests
resp = requests.post(
"https://www.kurdishtts.com/api/stt-proxy",
headers={"x-api-key": "YOUR_STT_API_KEY"},
files={"file": open("audio.wav", "rb")},
data={"dialect": "sorani"},
)
print(resp.json()["text"])Example — auto-detected language (cURL)
curl -X POST https://www.kurdishtts.com/api/stt-proxy \
-H "x-api-key: YOUR_STT_API_KEY" \
-F "file=@audio.mp3" \
-F "dialect=multilingual"
# the reply's "language" is the detected oneExample — auto-detected language (Python)
import requests
resp = requests.post(
"https://www.kurdishtts.com/api/stt-proxy",
headers={"x-api-key": "YOUR_STT_API_KEY"},
files={"file": open("audio.mp3", "rb")},
data={"dialect": "multilingual"}, # no "language": it is detected
)
reply = resp.json()
print(reply["language"], reply["text"])Example — auto-detected language (JavaScript)
const form = new FormData();
form.append("file", new Blob([audioBytes]), "audio.mp3");
form.append("dialect", "multilingual"); // no "language": it is detected
const res = await fetch("https://www.kurdishtts.com/api/stt-proxy", {
method: "POST",
headers: { "x-api-key": "YOUR_STT_API_KEY" },
body: form,
});
const { language, text } = await res.json();Example — a known language
curl -X POST https://www.kurdishtts.com/api/stt-proxy \
-H "x-api-key: YOUR_STT_API_KEY" \
-F "file=@audio.mp3" \
-F "dialect=multilingual" \
-F "language=de"Response JSON includes text, detected_dialect, detected_script, language and duration_seconds (the seconds of audio decoded, which minutes billing meters). With multilingual and no language, language is the detected one. The reply has no word timings and no speaker labels. On the free plan a long transcript may be clipped — indicated by truncated: true and truncation_limit.
Speech-to-Text (live streaming) — POST /api/stt-stream-connect
Real-time transcription over a WebSocket, in two steps:
POST /api/stt-stream-connectwith your STT key and{ "dialect": "sorani" }(sorani,kurmanjiorbadini; the other languages are file upload only) → returns a temporarywebsocket_url(connect within 5 minutes; it does not carry your key).- Open the WebSocket and stream raw 16-bit PCM, mono, 16 kHz audio as binary frames. Send
{ "type": "control", "event": "finalize" }to flush. The server streams{ "text": "…", "is_final": bool }messages and{ "type": "control", "event": "done" }when complete.
One streaming session is debited per connect. Session limits and max duration depend on your plan (free: 20 sessions / 2 min; starter: 100 / 10 min; pro: 500 / 30 min).
Example — JavaScript (browser)
const API_BASE = "https://www.kurdishtts.com";
const API_KEY = "YOUR_STT_API_KEY";
let ws;
async function connect(dialect) {
const res = await fetch(API_BASE + "/api/stt-stream-connect", {
method: "POST",
headers: { "x-api-key": API_KEY, "Content-Type": "application/json" },
body: JSON.stringify({ dialect }),
});
if (!res.ok) throw new Error((await res.json()).detail || "Failed to connect");
const data = await res.json();
console.log("Sessions remaining:", data.streaming_sessions_remaining);
ws = new WebSocket(data.websocket_url); // temporary URL, no key inside
ws.onopen = () => capture();
ws.onmessage = (event) => {
const msg = JSON.parse(event.data);
if (msg.type === "control" && msg.event === "done") return;
if (msg.text) console.log(msg.is_final ? "Final:" : "Partial:", msg.text);
};
}
async function capture() {
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
const ctx = new AudioContext({ sampleRate: 16000 }); // 16 kHz required
const source = ctx.createMediaStreamSource(stream);
const processor = ctx.createScriptProcessor(4096, 1, 1);
processor.onaudioprocess = (e) => {
const input = e.inputBuffer.getChannelData(0);
const pcm16 = new Int16Array(input.length); // 16-bit mono PCM
for (let i = 0; i < input.length; i++) {
pcm16[i] = Math.max(-32768, Math.min(32767, input[i] * 32768));
}
if (ws && ws.readyState === WebSocket.OPEN) ws.send(pcm16.buffer);
};
source.connect(processor);
processor.connect(ctx.destination);
}
// Call when the speaker is done:
function finalize() {
if (ws) ws.send(JSON.stringify({ type: "control", event: "finalize" }));
}
connect("sorani");Example — Python
import asyncio, json
import requests, websockets
import numpy as np
import sounddevice as sd
API_BASE = "https://www.kurdishtts.com"
API_KEY = "YOUR_STT_API_KEY"
async def stream_stt(dialect="sorani"):
resp = requests.post(
API_BASE + "/api/stt-stream-connect",
headers={"x-api-key": API_KEY, "Content-Type": "application/json"},
json={"dialect": dialect},
)
resp.raise_for_status()
data = resp.json()
print("Sessions remaining:", data["streaming_sessions_remaining"])
async with websockets.connect(data["websocket_url"]) as ws:
async def receive():
async for message in ws:
msg = json.loads(message)
if msg.get("type") == "control" and msg.get("event") == "done":
return
if "text" in msg:
print("Final:" if msg.get("is_final") else "Partial:", msg["text"])
receiver = asyncio.create_task(receive())
def callback(indata, frames, time, status):
pcm16 = (indata[:, 0] * 32767).astype(np.int16) # 16-bit mono
asyncio.run_coroutine_threadsafe(ws.send(pcm16.tobytes()), asyncio.get_event_loop())
with sd.InputStream(samplerate=16000, channels=1, callback=callback, blocksize=4096):
await asyncio.sleep(30) # record for 30s
await ws.send(json.dumps({"type": "control", "event": "finalize"}))
await receiver
asyncio.run(stream_stt("sorani"))List voices — GET /api/get-speakers
Use id as speaker_id and pass the same model_version when generating speech. ?model_version=v3 lists 198 voices, v4 lists 664, v5 lists 20 curated voices, six badini_ voices and 13 Cast and Studio voices, and v6 lists 34 multilingual V6 voices.
curl "https://www.kurdishtts.com/api/get-speakers?model_version=v4"Each speaker has id, name, dialect (sorani/kurmanji/badini) and gender. Entries in the v5 group carry two more: origin, which is v5 for a curated speaker, badini for one of the six Badini narrators, and cast or designed for a Cast or Studio one, and moods, the emotions that speaker was recorded with.
This endpoint lists a group in full and cannot see your key, so it is a catalog rather than an entitlement. What your plan may actually render is on the Settings → API page. A Cast or Studio speaker appears twice in the v5 listing, once under Sorani and once under Kurmanji, because it reads both. The six badini_ speakers appear once, under Badini only: they are the only voices auditioned for it, and pairing dialect "badini" with any other Kurdish speaker returns 400; the V6 voices also read Badini.
V6 voices
The v6 listing carries the 34 V6 voices, global_1 to global_34, each with its original_language (the language it was first recorded in, not a limit), and a top-level languages array of { code, name } objects for the 23 codes. Like a Cast or Studio speaker, a V6 voice appears once under each Kurdish dialect, because it reads them all; the dialect there is the listing it sits under, and the voice's original language is in original_language. They resolve as v6 whatever model_version you send (a Kurdish id sent with v6 returns 400), read the 23 languages and also Kurdish, and always need dialect (a Kurdish dialect in any spelling, or a language code). Moods are not on the API: a V6 voice speaks its neutral read.
curl "https://www.kurdishtts.com/api/get-speakers?model_version=v6"Who gets which voices. Free keys and Creator render today's Kurdish voices plus two V6 voices, global_1 (Zana) and global_2 (Bahar), in every language. Developer, Pro and Business render all 34. Naming a V6 voice outside your plan returns 403. The listing is a catalog, not an entitlement; Settings → API shows what your key can use.
MCP server — for AI agents
AI agents can call Kurdish TTS/STT natively over the Model Context Protocol. The MCP endpoint is https://www.kurdishtts.com/api/mcp (Streamable HTTP transport) and exposes six tools: synthesize_speech, transcribe_audio, start_streaming_transcription, list_voices, list_dialects and get_plan.
The tools take the same languages as the HTTP API (see Languages). synthesize_speech takes model_version v6 too, and accepts a language code as dialect with a V6 voice, and transcribe_audio takes badini, multilingual and an optional language. list_dialects lists the text-to-speech languages and the multilingual transcription option, and list_voices has a language filter that returns the V6 voices for that language, each once. Word timestamps, live streaming and speaker labels stay Kurdish only.
list_voices, list_dialects and get_plan need no API key, so an agent can connect and browse the voice catalog and the plan ladder before anyone signs up. Call get_plan first whenever a tool returns 401 or 403 — it reports what the current key may use and why the call was refused.
The three billed tools authenticate with Authorization: Bearer <api-key> — a TTS or STT key from Settings → API, or both joined as <ttsKey>:<sttKey>. Every tool call is validated, metered and billed against your plan exactly like the HTTP endpoints above — the MCP server is a thin wrapper, not a separate quota.
MCP payload limits: 4,000 characters per synthesis in the default mp3 container — 600 with format: "wav", and 500 on free plans — and 3MB of decoded audio per transcription, which is about 90 seconds of 16kHz WAV but roughly 25 minutes of 64kbps MP3, so send compressed audio. For longer texts or larger files call the HTTP API directly. Example client config:
{
"mcpServers": {
"kurdish-tts": {
"url": "https://www.kurdishtts.com/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_TTS_KEY:YOUR_STT_KEY"
}
}
}
}Step-by-step setup for Claude Code, Claude Desktop and Cursor: Add Kurdish voice to Claude.
Errors & limits
Successful responses use 200. Common error statuses:
400— bad request: a missing field, an invalid dialect, an invalidspeed, a file too large, a language problem (see below), anemotion(moods are not on the API yet), aspeaker_idthat is not in the speaker group you selected (a Kurdish id withv6, for one), or a voice paired with a dialect it cannot read (Badini is read by the sixbadini_speakers and by the V6 voices).401— missing or invalid API key (check you are using the right key space).403— plan inactive or expired, characters exhausted, a speaker outside your plan's slice of the group you selected, a Cast or Studio speaker on a plan not bought for the API, or a reserved speaker. Body includeserrorand oftenupgrade_requiredandupgrade_url.422— the engine rejected a generation parameter (e.g.temperature: 0.0); thedetailarray carries specifics.503— transient. The speaker roster could not be reached, so the request was refused rather than validated against a stale list. Retry.
Language errors on text-to-speech are all 400:
That language isn't available yet.That voice doesn't read the selected language.Send a V6 voice for another language.Unknown dialect or language "<code>", followed by the valid list.Word timestamps are available for Kurdish only.Set dialect to a Kurdish dialect or a language code when you use a V6 voice.
A V6 voice your plan does not include is a 403. Speech-to-text answers That language isn't available yet. with a 400 when the service does not offer the language.
Two that surprise people
- An unknown
model_versionis a403, not a422, and the message names your plan. The check fails closed on any value it does not recognise, so a typo reads like an entitlement problem. Sendv3,v4,v5orv6. - A speaker that is not in the group you selected returns
400underv5andv6but403underv3andv4— the same mistake, two statuses. Handle both if you validate IDs client-side.
Plans, quotas and prices are on the pricing page. The full machine-readable contract is at /openapi.json.