{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lazybird-app/json-schema/lazybird-app-voice-schema.json",
  "title": "Voice",
  "description": "Fields without a value are left out",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lazybird-app-openapi.json#/components/schemas/Voice",
  "type": "object",
  "required": [
    "id",
    "displayName",
    "gender"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Pass as `voiceId`. Treat as opaque."
    },
    "displayName": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "language": {
      "type": "string",
      "description": "Primary language and accent as a locale, e.g. `en-US`"
    },
    "detectedLanguage": {
      "type": "string",
      "description": "Language heard in the voice's sample, as a bare code such as `vi`; `language` wins when both are set"
    },
    "detectedLocale": {
      "type": "string",
      "description": "Accent heard in the voice's sample, e.g. `en-GB`, when it is clear"
    },
    "gender": {
      "type": "string",
      "enum": [
        "female",
        "male",
        "unknown"
      ]
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "styleList": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Values `settings.style` accepts for this voice"
    },
    "avatar": {
      "type": "string",
      "format": "uri"
    },
    "previewText": {
      "type": "string",
      "description": "The line the preview clip speaks"
    },
    "previewUrl": {
      "type": "string",
      "format": "uri",
      "description": "Preview clip (MP3)"
    },
    "scope": {
      "type": "string",
      "enum": [
        "global",
        "community",
        "user"
      ],
      "description": "`global` (Lazybird library), `community` (published by a user) or `user` (private clone)"
    },
    "published": {
      "type": "boolean",
      "description": "In the public library"
    },
    "mine": {
      "type": "boolean",
      "description": "The voice is yours"
    },
    "favorite": {
      "type": "boolean",
      "description": "You starred the voice in the Studio"
    },
    "official": {
      "type": "boolean",
      "description": "Official Lazybird voice"
    },
    "featured": {
      "type": "boolean",
      "description": "Featured in the voice library"
    },
    "popular": {
      "type": "boolean",
      "description": "One of the 10 most used voices of all time"
    },
    "trending": {
      "type": "boolean",
      "description": "One of the 10 most used voices of the last 7 days"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "ownerNickname": {
      "type": "string",
      "description": "Creator's name on user-made voices whose creator has a public profile"
    },
    "ownerUserId": {
      "type": "string",
      "description": "Creator's user ID on published voices whose creator has a public profile"
    },
    "stats": {
      "type": "object",
      "description": "Usage of library voices",
      "properties": {
        "usageCount": {
          "type": "integer",
          "description": "Uses of all time"
        },
        "usageCount7d": {
          "type": "integer",
          "description": "Uses in the last 7 days"
        },
        "popularRank": {
          "type": "integer",
          "description": "Position among the 10 most used voices of all time"
        },
        "trendingRank": {
          "type": "integer",
          "description": "Position among the 10 most used voices of the last 7 days"
        }
      }
    }
  }
}