{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-generate-speech-response-schema.json",
  "title": "GenerateSpeechResponse",
  "description": "Response for `POST /audio/generate`. The clip is stored as a `voice` audio file with\n`metadata.source = \"generated\"`. Add it to a profile with\n`POST /profiles/{profileId}/items` (`type: voice`, `audioId`) to use it in a test.\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-audio-api-openapi.yml#/components/schemas/GenerateSpeechResponse",
  "type": "object",
  "required": [
    "audioId",
    "url",
    "expiresInSecs",
    "characters",
    "sizeBytes",
    "voiceId",
    "name"
  ],
  "properties": {
    "audioId": {
      "type": "string",
      "format": "uuid"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Presigned GET URL for listening to the clip, valid for `expiresInSecs`."
    },
    "expiresInSecs": {
      "type": "integer"
    },
    "characters": {
      "type": "integer",
      "description": "Billable characters (the length of `text`, markup included)."
    },
    "sizeBytes": {
      "type": "integer"
    },
    "durationSecs": {
      "type": "number",
      "description": "Length of the clip in seconds."
    },
    "voiceId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  }
}