{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiopod-ai/json-schema/audiopod-ai-speaker-profile-create-schema.json",
  "title": "SpeakerProfileCreate",
  "description": "Create/save a reusable speaker persona preset.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiopod-ai-podcast-api-openapi.yml#/components/schemas/SpeakerProfileCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name"
    },
    "speaker_name": {
      "type": "string",
      "maxLength": 50,
      "minLength": 1,
      "title": "Speaker Name"
    },
    "voice_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Voice Id",
      "description": "In-house Voice catalog id"
    },
    "backstory": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Backstory"
    },
    "personality": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Personality"
    },
    "role": {
      "anyOf": [
        {
          "$ref": "#/$defs/SpeakerRole"
        },
        {
          "type": "null"
        }
      ]
    },
    "language": {
      "type": "string",
      "title": "Language",
      "default": "en"
    }
  },
  "type": "object",
  "required": [
    "name",
    "speaker_name"
  ],
  "$defs": {
    "SpeakerRole": {
      "type": "string",
      "enum": [
        "Host",
        "Expert",
        "Guest",
        "Narrator"
      ],
      "title": "SpeakerRole",
      "description": "Role of a speaker in the podcast."
    }
  }
}