{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kurdishtts-com/json-schema/kurdishtts-com-tts-stream-request-schema.json",
  "title": "TtsStreamRequest",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kurdishtts-com-openapi.json#/components/schemas/TtsStreamRequest",
  "type": "object",
  "required": [
    "text",
    "speaker_id"
  ],
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 5000,
      "description": "Text to synthesize. Max 500 characters on free plans and 5000 on paid plans."
    },
    "speaker_id": {
      "type": "string",
      "description": "Speaker id from the group selected by `model_version`. The groups share no IDs, so the two fields must agree."
    },
    "dialect": {
      "type": "string",
      "enum": [
        "sorani",
        "kurmanji",
        "badini"
      ],
      "description": "Reading language. Inferred from the speaker_id prefix when it has one, so send it only for the Cast and Studio speakers, which have none. A Cast or Studio speaker paired with badini is refused with a 400."
    },
    "model_version": {
      "type": "string",
      "enum": [
        "v3",
        "v4",
        "v5"
      ],
      "default": "v3",
      "description": "Speaker group the speaker_id is resolved in; not a model or engine choice. Every value renders on V5."
    },
    "stream_format": {
      "type": "string",
      "enum": [
        "sse",
        "pcm",
        "wav"
      ],
      "default": "sse",
      "description": "SSE and PCM are progressive. WAV is a buffered compatibility response."
    },
    "include_timestamps": {
      "type": "boolean",
      "default": false,
      "description": "For SSE, emit per-chunk word timestamp events and include the cumulative list in the final event."
    },
    "speed": {
      "type": "number",
      "minimum": 0.25,
      "maximum": 4.0,
      "description": "Playback speed; higher is faster."
    },
    "temperature": {
      "type": "number"
    },
    "seed": {
      "type": "integer"
    }
  }
}