{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiopod-ai/json-schema/audiopod-ai-audiobook-project-create-schema.json",
  "title": "AudiobookProjectCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiopod-ai-audiobook-api-openapi.yml#/components/schemas/AudiobookProjectCreate",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Title",
      "description": "Audiobook title"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Project description"
    },
    "author": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Author",
      "description": "Author name"
    },
    "isbn": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Isbn",
      "description": "ISBN if available"
    },
    "genre": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Genre",
      "description": "Book genre"
    },
    "selected_voice_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selected Voice Id",
      "description": "Voice ID for narration"
    },
    "language": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Language",
      "description": "Spoken language of the book as an ISO 639-1 code ('en', 'it'); a region suffix ('it-IT') is accepted and normalized. Every narration and regeneration for this project inherits it. Omit or send 'auto' to have it detected from the manuscript."
    },
    "narration_speed": {
      "type": "number",
      "maximum": 2.0,
      "minimum": 0.5,
      "title": "Narration Speed",
      "description": "Speech speed multiplier",
      "default": 1.0
    },
    "narration_style": {
      "type": "string",
      "title": "Narration Style",
      "description": "Narration style",
      "default": "narrative"
    },
    "export_format": {
      "type": "string",
      "title": "Export Format",
      "description": "Export format",
      "default": "acx"
    },
    "target_platform": {
      "type": "string",
      "title": "Target Platform",
      "description": "Target platform",
      "default": "audible"
    },
    "source_type": {
      "type": "string",
      "title": "Source Type",
      "description": "Project source: upload, paste, or generated",
      "default": "upload"
    },
    "auto_regenerate_on_edit": {
      "type": "boolean",
      "title": "Auto Regenerate On Edit",
      "description": "Descript-style: auto-regenerate paragraph audio after a debounced text edit",
      "default": false
    },
    "narration_review_policy": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "manual",
            "auto_accept"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Narration Review Policy",
      "description": "What happens to a passage our narration check cannot confirm after its retry: 'manual' holds it for your approval (the chapter waits on it), 'auto_accept' keeps the best render and counts it under `quality_notes`, so the book never blocks. Omitted: 'auto_accept' when you authenticate with an API key, 'manual' in the Studio. Automated pipelines should use 'auto_accept'."
    }
  },
  "type": "object",
  "required": [
    "title"
  ]
}