{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/narrador-io/json-schema/narrador-io-files-voice-schema.json",
  "title": "FilesVoice",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/narrador-io-openapi.json#/components/schemas/FilesVoice",
  "type": "object",
  "required": [
    "id",
    "name",
    "tier",
    "provider",
    "avatarColor"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "tier": {
      "type": "string",
      "enum": [
        "standard",
        "cheaper"
      ],
      "description": "Voice cost tier: `standard` (premium catalog) or `cheaper` (economy catalog)."
    },
    "provider": {
      "type": "string",
      "enum": [
        "standard",
        "cheaper"
      ],
      "deprecated": true,
      "description": "Deprecated — use `tier`. Mirrors `tier` and does not name internal TTS backends."
    },
    "defaultAccent": {
      "type": "string"
    },
    "isPublic": {
      "type": "boolean"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "sampleUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Neutral preview URL on this API (`GET /v1/voices/{voiceId}/sample` redirects to stored audio). Does not expose internal storage paths."
    },
    "avatarUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Stored avatar image URL. Null until an image is uploaded; clients should show initials on `avatarColor`."
    },
    "avatarColor": {
      "type": "string",
      "description": "Fallback swatch as `#RRGGBB` for initials when `avatarUrl` is null."
    }
  }
}