{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-tts-status-response-schema.json",
  "title": "TtsStatusResponse",
  "description": "Response containing text-to-speech generation status and file references.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-announcement-repository-api-openapi.yml#/components/schemas/TtsStatusResponse",
  "type": "object",
  "required": [
    "id",
    "status",
    "text",
    "voice",
    "languageCode"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the text-to-speech generation request."
    },
    "voice": {
      "type": "string",
      "description": "The voice ID used to generate the audio prompt."
    },
    "text": {
      "type": "string",
      "description": "The input text used to generate the audio prompt."
    },
    "languageCode": {
      "type": "string",
      "description": "The language code used to generate the audio prompt."
    },
    "status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCESS",
        "FAILURE"
      ],
      "description": "The status of the text-to-speech generation request."
    },
    "promptUrl": {
      "type": "string",
      "description": "A URL to download the encrypted audio prompt. Only available when status is `SUCCESS`."
    },
    "kmsKeyUri": {
      "type": "string",
      "description": "The KMS key URI required to decrypt the prompt downloaded from `promptUrl`. Only available when status is `SUCCESS`."
    },
    "fileUri": {
      "type": "string",
      "description": "A file URI you can use when configuring an announcement. Only available when status is `SUCCESS`."
    },
    "errorMessage": {
      "type": "string",
      "description": "A detailed message describing why generation failed. Only present when status is `FAILURE`."
    }
  }
}