{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-recording-schema.json",
  "title": "Recording",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-media-api-openapi.yml#/components/schemas/Recording",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 80,
      "description": "Name of recording"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "hold_music",
        "greeting"
      ],
      "description": "Can be hold_music or greeting. Indicates the purpose of this recording and where it can be used."
    },
    "origin": {
      "type": "string",
      "enum": [
        "file",
        "tts"
      ],
      "description": "Can be 'file' or 'tts'."
    },
    "duration": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Duration of greeting."
    },
    "notes": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 800,
      "description": "Notes of greeting."
    },
    "randomized": {
      "type": [
        "boolean",
        "null"
      ],
      "enum": [
        true,
        false,
        "Y",
        "y",
        "N",
        "n"
      ],
      "description": "Can be Y or N. Start the greeting from random location, instead of the beginning."
    },
    "extension": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "Extension that this record belongs to."
    },
    "tts_text": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 800,
      "description": "Text used for text-to-speech conversion, maximum 800 characters"
    },
    "tts_voice": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "Mads / Danish",
        "Naja / Danish",
        "Lotte / Dutch",
        "Ruben / Dutch",
        "Nicole / English (Australia)",
        "Russell / English (Australia)",
        "Amy / English (Great Britain)",
        "Brian / English (Great Britain)",
        "Emma / English (Great Britain)",
        "Raveena / English (India)",
        "Ivy / English (US)",
        "Joanna / English (US)",
        "Joey / English (US)",
        "Justin / English (US)",
        "Kendra / English (US)",
        "Kimberly / English (US)",
        "Salli / English (US)",
        "Geraint / English (Wales)",
        "Celine / French",
        "Mathieu / French",
        "Chantal / French (Canada)",
        "Hans / German",
        "Marlene / German",
        "Vicki / German",
        "Dora / Icelandic",
        "Karl / Icelandic",
        "Carla / Italian",
        "Giorgio / Italian",
        "Mizuki / Japanese",
        "Takumi / Japanese",
        "Seoyeon / Korean",
        "Liv / Norwegian",
        "Jacek / Polish",
        "Jan / Polish",
        "Ewa / Polish",
        "Maja / Polish",
        "Ricardo / Portuguese",
        "Vitoria / Portuguese",
        "Cristiano / Portuguese (Brazil)",
        "Ines / Portuguese (Brazil)",
        "Carmen / Romanian",
        "Maxim / Russian",
        "Tatyana / Russian",
        "Conchita / Spanish",
        "Enrique / Spanish",
        "Miguel / Spanish (Latin America)",
        "Penelope / Spanish (Latin America)",
        "Astrid / Swedish",
        "Filiz / Turkish",
        "Gwyneth / Welsh"
      ],
      "description": "Allowed voices for tts"
    },
    "file": {
      "type": [
        "string",
        "null"
      ],
      "description": "Record file."
    },
    "filename": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 48,
      "description": "Name of file to be uploaded, when 'origin' is set to 'file'."
    }
  },
  "required": [
    "name",
    "origin"
  ]
}