{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/creativefabrica/json-schema/creativefabrica-voice-list-schema.json",
  "title": "VoiceList",
  "description": "A cursor-paginated page of voices.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/creativefabrica-voices-api-openapi.yml#/components/schemas/VoiceList",
  "type": "object",
  "required": [
    "data",
    "hasMore"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Voice"
      }
    },
    "hasMore": {
      "type": "boolean"
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` to fetch the next page. Null when `hasMore` is false."
    }
  },
  "$defs": {
    "Voice": {
      "type": "object",
      "description": "One selectable speaker voice.",
      "required": [
        "id",
        "name",
        "voiceCatalog",
        "provider"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Pass as the `speaker` option. Unique within its catalog only — ids are\nnot interchangeable between catalogs.\n"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "voiceCatalog": {
          "type": "string",
          "description": "Catalog this voice belongs to."
        },
        "provider": {
          "type": "string",
          "description": "Vendor backing the catalog."
        },
        "previewUrl": {
          "type": "string",
          "format": "uri",
          "description": "Audition sample. Absent when the vendor publishes none."
        },
        "avatarUrl": {
          "type": "string",
          "format": "uri",
          "description": "Thumbnail image. Absent when the vendor publishes none."
        },
        "labels": {
          "$ref": "#/$defs/VoiceLabels"
        },
        "languages": {
          "type": "array",
          "description": "Every language the voice speaks. May be empty when the vendor\npublishes no language metadata.\n",
          "items": {
            "$ref": "#/$defs/VoiceLanguage"
          }
        }
      }
    },
    "VoiceLabels": {
      "type": "object",
      "description": "Filterable descriptive labels. Values are normalized to canonical\nlowercase ids (e.g. `female`, `middle_aged`) so they are stable across\nvendors, which differ in case and spelling. Fields are absent when the\nvendor publishes no value.\n",
      "properties": {
        "gender": {
          "type": "string"
        },
        "age": {
          "type": "string"
        },
        "accent": {
          "type": "string"
        },
        "useCase": {
          "type": "string"
        }
      }
    },
    "VoiceLanguage": {
      "type": "object",
      "required": [
        "language"
      ],
      "properties": {
        "language": {
          "type": "string",
          "description": "ISO 639-1 code, optionally region-qualified."
        },
        "previewUrl": {
          "type": "string",
          "format": "uri",
          "description": "Per-language audition sample, when published."
        },
        "sampleText": {
          "type": "string",
          "description": "The text spoken in the per-language sample."
        }
      }
    }
  }
}