{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craftstory-com/json-schema/craftstory-com-audio-clip-create-schema.json",
  "title": "AudioClipCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craftstory-com-audio-api-openapi.yml#/components/schemas/AudioClipCreate",
  "type": "object",
  "properties": {
    "id": {
      "title": "Id",
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "file": {
      "title": "File",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "format": "uri"
    },
    "silent_duration": {
      "title": "Silent duration",
      "type": [
        "integer",
        "null"
      ],
      "enum": [
        500,
        1000,
        1500,
        2000,
        2500,
        3000,
        3500,
        4000,
        4500,
        5000,
        null
      ]
    },
    "text": {
      "title": "Text",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2000,
      "minLength": 1
    },
    "avatar": {
      "title": "Avatar",
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "voice": {
      "title": "Voice",
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "voice_id": {
      "title": "Voice id",
      "description": "Library voice id (from GET /craftstory-2/voices/). Send this OR voice_user_id, not both.",
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "voice_user_id": {
      "title": "Voice user id",
      "description": "Cloned voice id (from GET /craftstory-2/user-voices/). Send this OR voice_id, not both.",
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "is_user_selected_voice": {
      "title": "Is user selected voice",
      "type": "boolean"
    }
  }
}