kurdvoice

v0.1.0
io.github.CloudCorpRecords/kurdvoice Checked 4 days ago Published 20 days ago

Kurdish speech tools: Sorani and Kurmanji text-to-speech and transcription, voices and plans.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_dialects List Kurdish dialects

List the supported Kurdish dialects and their scripts. Static capability descriptor — costs nothing and needs no API key.

list_voices List Kurdish TTS voices

List available Kurdish text-to-speech voices. Returns speaker ids to use with synthesize_speech. Free metadata call — no credits consumed, no API key needed. Defaults to model_version "v3", the SAME default synthesize_speech uses — pass the same model_version to both, because a speaker id from one catalog does not exist in another. Results are paginated; the response reports total_count and which ids a free plan may render.

ParameterTypeDescription
dialectstringFilter by dialect.
genderstringFilter by voice gender.
limitintegerMaximum voices to return. Default 25.
model_versionstringVoice catalog. Default "v3", matching synthesize_speech. v3 is the compatibility catalog; v4 is the large catalog (hundreds of voices); v5 is the curated catalog plus Cast and Studio voices, and requi…
offsetintegerNumber of voices to skip, for paging. Default 0.

get_plan Get plan, entitlements and pricing

Show what this connection may use. With an API key: your current plan, remaining allowance, which model_versions and speaker ids you may render. Without a key: the purchasable plan ladder and how to get a key. Free, no credits consumed. Call this FIRST when any tool returns a 401 or 403 — it is the fastest way to learn what went wrong.

synthesize_speech Kurdish text to speech

Convert Kurdish text (Sorani or Kurmanji) to speech audio. Requires a TTS API key; characters are billed against your plan. Get speaker_id from list_voices called with the SAME model_version you pass here (default "v3") — ids are not shared between catalogs. Returns one complete clip: MCP cannot stream, so for a live voice agent call POST https://www.kurdishtts.com/api/tts-stream directly instead (SSE, first audio in ~1s). Max 4000 characters per call in the default mp3 container, 600 with format "wav"; free plans are capped at 500 server-side. Note: speed is caller-facing (higher = faster).

ParameterTypeDescription
speaker_id *stringVoice id from list_voices, e.g. "sorani_85" or "kurmanji_6" on the default "v3" catalog. Dialect is derived from the prefix. Must come from the same model_version you pass below.
text *stringKurdish text to synthesize. Max 4000 characters (only 600 if you set format "wav"); free plans are capped at 500.
dialectstringLanguage the text is in. Normally inferred from the speaker_id prefix and safe to omit. REQUIRED to get a correct Kurmanji read from a Cast or Studio voice (cast_*, studio_*): those are tagged sorani…
formatstringAudio container. Default "mp3". Audio is returned base64-encoded inside the tool result, so the container decides how much of your context it costs: for identical speech, mp3 is ~7.5x smaller than wav…
include_timestampsbooleanReturn JSON with word-level timestamps instead of an audio block. NOTE: the audio in that JSON is headerless raw PCM16 (24kHz mono), not a WAV file — add a WAV header before saving it, or it will no…
model_versionstringVoice catalog and plan entitlement. Default "v3". Explicit "v5" and the Cast/Studio voices require a paid API plan.
speednumberPlayback speed, higher = faster. Default 1.

transcribe_audio Kurdish speech to text

Transcribe Kurdish audio (Sorani or Kurmanji) to text. Requires an STT API key; usage is metered per audio minute against your plan. IMPORTANT: dialect selects the decoder and nothing detects it for you — transcribing Sorani audio as Kurmanji returns fluent, confident, WRONG text with no error. Pass dialect "auto" when you are not certain, and pick the coherent transcript from the two it returns. Max 3MB of decoded audio over MCP (~90s of 16kHz WAV, but ~25 minutes of 64kbps MP3 — send compressed audio to fit more); for larger files call POST https://www.kurdishtts.com/api/stt-proxy direct…

ParameterTypeDescription
audio_base64 *stringBase64-encoded audio file (WAV, MP3, FLAC, OGG or M4A). Max 3MB decoded — compressed formats fit far more speech in that budget than WAV does.
dialect *stringWhich decoder to run. "sorani" or "kurmanji" when you know the dialect. "auto" transcribes with BOTH and returns both transcripts so you can choose — it bills the audio twice, so prefer a known dial…
filenamestringOriginal filename, used to infer the format. Default audio.wav.
mime_typestringAudio MIME type. Default audio/wav.

start_streaming_transcription Start live Kurdish transcription session (listening, not speaking)

Open a live speech-to-text session for LISTENING — a microphone or audio stream you transcribe in real time. This does NOT make anything speak; to speak Kurdish use synthesize_speech, or POST https://www.kurdishtts.com/api/tts-stream for progressive audio. WARNING: calling this immediately consumes one streaming session from your STT plan quota — only call it when you are ready to connect. Returns a websocket_url: open it, stream PCM16 mono 16kHz audio chunks, send {"type": "finalize"} to flush and {"type": "done"} to close. Session duration is limited by plan.

ParameterTypeDescription
dialect *stringDialect that will be spoken.