{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiostack/json-schema/audiostack-create-brief-from-body-request-schema.json",
  "title": "Submit a new brief",
  "description": "Creating ad from a new brief",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiostack-brief-api-openapi.yml#/components/schemas/CreateBriefFromBodyRequest",
  "type": "object",
  "properties": {
    "audioformVersion": {
      "$ref": "#/$defs/audioformVersion"
    },
    "brief": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "script": {
          "oneOf": [
            {
              "title": "AI Script Writer",
              "additionalProperties": false,
              "description": "Use when you want AudioStack to write your script with AI using a product description.",
              "properties": {
                "productName": {
                  "title": "Product name",
                  "type": "string",
                  "description": "The name of the product you are advertising.\n"
                },
                "productDescription": {
                  "title": "Product description",
                  "type": "string",
                  "description": "Your product description must be a meaningful summary of your product.\n\nDo: \n  - Describe your product including things like why it is great, who it \n  is for, and its unique features. \n  - Make sure your description is at least 15-20 words long.\n\nDon't:\n  - Add meaningless text.\n  - Only paste URLs.\n  - Use special characters or emojis.\n  - Write in multiple languages.\n"
                },
                "adLength": {
                  "default": 30,
                  "oneOf": [
                    {
                      "type": "null",
                      "title": "Variable length",
                      "description": "Set to `null` to allow the length of ad to fit to the script and voice speed.\n"
                    },
                    {
                      "enum": [
                        10,
                        15,
                        20,
                        30,
                        40
                      ],
                      "type": "integer",
                      "title": "Fixed length",
                      "description": "Set value to force the ad to fit to the desired length.\nThis will adjust the script length (if being written by AI) and voice speed.\n"
                    }
                  ]
                },
                "lang": {
                  "$ref": "#/$defs/language"
                },
                "callToAction": {
                  "default": "",
                  "title": "Call to action",
                  "type": "string",
                  "description": "Set a call to action for the ad to be included in the ad.\n\nDon't:\n  - Use this field like a prompt.\n  - Include instructions like \"Make sure to include\".\n"
                },
                "targetAudience": {
                  "default": "",
                  "title": "Target audience",
                  "type": "string",
                  "description": "Define the target audience for the ad.\n\nDon't:\n  - Use this field like a prompt.\n  - Include instructions like \"Make sure to target\".\n"
                },
                "toneOfScript": {
                  "default": "",
                  "title": "Tone of script",
                  "type": "string",
                  "description": "Define the desired tone of the ad.\n\nDon't:\n  - Use this field like a prompt.\n  - Include instructions like \"Make the ad silly\".\n"
                },
                "thirdPerson": {
                  "type": "boolean",
                  "default": true,
                  "title": "Third person indicator",
                  "description": "Set to `true` to write the ad in the third person .\n"
                }
              },
              "required": [
                "productName",
                "productDescription"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "description": "Handles cases where a fully written script is provided.",
              "properties": {
                "productName": {
                  "title": "Product name",
                  "type": "string",
                  "description": "The name of the product you are advertising.\n"
                },
                "scriptText": {
                  "title": "Script text",
                  "type": "string",
                  "description": "Script text to be used in the ad.\n"
                },
                "adLength": {
                  "default": 30,
                  "oneOf": [
                    {
                      "type": "null",
                      "title": "Variable length",
                      "description": "Set to `null` to allow the length of ad to fit to the script and voice speed.\n"
                    },
                    {
                      "exclusiveMinimum": 0,
                      "maximum": 600,
                      "type": "number",
                      "title": "Fixed length",
                      "description": "Set value to force the ad to fit to the desired length.\nThis will adjust the voice speed as necessary overriding any speed value.\n"
                    }
                  ]
                },
                "lang": {
                  "$ref": "#/$defs/language"
                }
              },
              "required": [
                "productName",
                "scriptText"
              ],
              "title": "Use your own script",
              "type": "object"
            }
          ]
        },
        "voices": {
          "items": {
            "anyOf": [
              {
                "title": "Voice",
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "title": "Alias",
                    "type": "string"
                  },
                  "speed": {
                    "oneOf": [
                      {
                        "type": "null",
                        "title": "Auto-recommended speed",
                        "description": "Set to `null` or omit to use the recommended speed for the voice."
                      },
                      {
                        "maximum": 1.2,
                        "minimum": 0.8,
                        "type": "number",
                        "title": "User-defined speed",
                        "description": "Set a value to guide the speed for the voice. \nNote that when `script.adLength` is set, the speed will \nbe adjusted to fit the target ad length but this value \nwill still be used to adjust the script length.\n"
                      }
                    ],
                    "default": null,
                    "title": "Speed"
                  },
                  "voicePreset": {
                    "default": "standard",
                    "type": "string",
                    "title": "Voice Preset",
                    "enum": [
                      "standard",
                      "expressive"
                    ]
                  }
                },
                "required": [
                  "alias"
                ]
              },
              {
                "additionalProperties": false,
                "properties": {
                  "accent": {
                    "oneOf": [
                      {
                        "type": "null",
                        "title": "Any accent"
                      },
                      {
                        "items": {
                          "type": "string",
                          "title": "AccentsEnum",
                          "enum": [
                            "in",
                            "indian",
                            "jp",
                            "japanese",
                            "us",
                            "american",
                            "cn",
                            "chinese",
                            "ca",
                            "canadian",
                            "tw",
                            "taiwanese",
                            "hindi",
                            "au",
                            "australian",
                            "rs",
                            "serbian",
                            "nl",
                            "dutch",
                            "de",
                            "standard",
                            "gb",
                            "british",
                            "shaanxi",
                            "guangxi",
                            "sk",
                            "slovak",
                            "no",
                            "norwegian",
                            "lb",
                            "lebanese",
                            "id",
                            "indonesian",
                            "vn",
                            "vietnamese",
                            "german",
                            "ph",
                            "filipino",
                            "ba",
                            "bosnian and herzegovinian",
                            "tn",
                            "tunisian",
                            "za",
                            "south african",
                            "pa",
                            "panamanian",
                            "it",
                            "italian",
                            "br",
                            "brazilian",
                            "my",
                            "malaysian",
                            "ro",
                            "romanian",
                            "ua",
                            "ukrainian",
                            "pl",
                            "polish",
                            "ee",
                            "estonian",
                            "af",
                            "afghan",
                            "pt",
                            "portuguese",
                            "ir",
                            "modern standard",
                            "fr",
                            "french",
                            "multilingual",
                            "hk",
                            "hong kong",
                            "mx",
                            "mexican",
                            "eg",
                            "egyptian",
                            "sichuan",
                            "ie",
                            "irish",
                            "es",
                            "spanish",
                            "se",
                            "swedish",
                            "ja",
                            "uy",
                            "uruguayan",
                            "al",
                            "albanian",
                            "ch",
                            "swiss",
                            "ge",
                            "georgian",
                            "gt",
                            "guatemalan",
                            "pr",
                            "puerto rican",
                            "ru",
                            "russian",
                            "scottish",
                            "tr",
                            "turkish",
                            "th",
                            "thai",
                            "de-standard",
                            "bg",
                            "bulgarian",
                            "dk",
                            "danish",
                            "kr",
                            "south korean",
                            "la",
                            "laotian",
                            "ae",
                            "emirati",
                            "nz",
                            "new zealand",
                            "pk",
                            "pakistani",
                            "be",
                            "belgian",
                            "gr",
                            "greek",
                            "om",
                            "omani",
                            "shandong",
                            "mt",
                            "maltese",
                            "sv",
                            "salvadoran",
                            "uk",
                            "cl",
                            "chilean",
                            "il",
                            "israeli",
                            "np",
                            "nepalese",
                            "mn",
                            "mongolian",
                            "sg",
                            "singaporean",
                            "lk",
                            "sri lankan",
                            "ve",
                            "venezuelan",
                            "xa",
                            "arabic",
                            "kh",
                            "cambodian",
                            "hu",
                            "hungarian",
                            "korean",
                            "ke",
                            "kenyan",
                            "co",
                            "colombian",
                            "ar",
                            "argentinian",
                            "am",
                            "armenian",
                            "hi",
                            "at",
                            "austrian",
                            "ye",
                            "yemeni",
                            "ng",
                            "nigerian",
                            "hn",
                            "honduran",
                            "mm",
                            "burmese",
                            "ec",
                            "ecuadorian",
                            "iranian",
                            "parisian",
                            "is",
                            "icelandic",
                            "sa",
                            "saudi arabian",
                            "liaoning",
                            "cz",
                            "czech",
                            "saudi",
                            "tz",
                            "tanzanian",
                            "latin american",
                            "fi",
                            "finnish",
                            "lv",
                            "latvian",
                            "lt",
                            "lithuanian",
                            "ma",
                            "moroccan",
                            "et",
                            "ethiopian",
                            "mk",
                            "macedonian",
                            "do",
                            "dominican",
                            "ly",
                            "libyan",
                            "kw",
                            "kuwaiti",
                            "so",
                            "somali",
                            "bh",
                            "bahraini",
                            "si",
                            "slovenian",
                            "cr",
                            "costa rican",
                            "kz",
                            "kazakhstani",
                            "uz",
                            "uzbekistani",
                            "dz",
                            "algerian",
                            "bo",
                            "bolivian",
                            "az",
                            "azerbaijani",
                            "gq",
                            "equatorial guinean",
                            "ni",
                            "nicaraguan",
                            "iq",
                            "iraqi",
                            "py",
                            "paraguayan",
                            "qa",
                            "qatari",
                            "cu",
                            "cuban",
                            "sy",
                            "syrian",
                            "hr",
                            "croatian",
                            "jo",
                            "jordanian",
                            "gulf",
                            "henan",
                            "pe",
                            "peruvian",
                            "levantine",
                            "ja_jp"
                          ]
                        },
                        "title": "Specify accent(s)",
                        "description": "Specify the accent(s) you want to use for the voice.\nYou can specify multiple accents by adding them to the array.\n",
                        "type": "array"
                      }
                    ],
                    "default": null,
                    "title": "Accent"
                  },
                  "gender": {
                    "oneOf": [
                      {
                        "type": "null",
                        "title": "Any gender"
                      },
                      {
                        "items": {
                          "$ref": "#/$defs/gender"
                        },
                        "title": "Specify gender(s)",
                        "description": "Specify the gender(s) you want to use for the voice.\nYou can specify multiple genders by adding them to the array.\n",
                        "type": "array"
                      }
                    ],
                    "default": null,
                    "title": "Gender"
                  },
                  "lang": {
                    "oneOf": [
                      {
                        "type": "null",
                        "title": "Any language(s)"
                      },
                      {
                        "items": {
                          "type": "string",
                          "title": "Allowed languages",
                          "description": "These are the languages which AudioStack's voice library can support.",
                          "enum": [
                            "af",
                            "am",
                            "ar",
                            "az",
                            "be",
                            "bg",
                            "bn",
                            "bs",
                            "ca",
                            "cmn",
                            "cs",
                            "cy",
                            "da",
                            "de",
                            "el",
                            "en",
                            "es",
                            "et",
                            "eu",
                            "fa",
                            "fi",
                            "fil",
                            "fr",
                            "ga",
                            "gd",
                            "gl",
                            "gu",
                            "he",
                            "hi",
                            "hr",
                            "hu",
                            "hy",
                            "id",
                            "is",
                            "it",
                            "ja",
                            "jv",
                            "ka",
                            "kk",
                            "km",
                            "kn",
                            "ko",
                            "lo",
                            "lt",
                            "lv",
                            "mi",
                            "mk",
                            "ml",
                            "mn",
                            "mr",
                            "ms",
                            "mt",
                            "my",
                            "nb",
                            "ne",
                            "nl",
                            "no",
                            "pa",
                            "pl",
                            "ps",
                            "pt",
                            "ro",
                            "ru",
                            "si",
                            "sk",
                            "sl",
                            "so",
                            "sq",
                            "sr",
                            "su",
                            "sv",
                            "sw",
                            "ta",
                            "te",
                            "th",
                            "tl",
                            "tr",
                            "uk",
                            "ur",
                            "uz",
                            "vi",
                            "yue",
                            "zh",
                            "zho",
                            "zu"
                          ]
                        },
                        "title": "Specify language(s)",
                        "description": "Specify the language(s) you want to use for the voice.\nYou can specify multiple languages by adding them to the array.\n",
                        "type": "array"
                      }
                    ],
                    "default": null,
                    "title": "Language"
                  },
                  "voicePreset": {
                    "$ref": "#/$defs/voicePreset",
                    "default": "standard"
                  },
                  "speed": {
                    "$ref": "#/$defs/speed"
                  },
                  "tone": {
                    "oneOf": [
                      {
                        "type": "null",
                        "default": null,
                        "title": "Any tone"
                      },
                      {
                        "items": {
                          "$ref": "#/$defs/items"
                        },
                        "title": "Specify tone(s)",
                        "description": "Specify the tone(s) you want to use for the voice.\nYou can specify multiple tones by adding them to the array.\n",
                        "type": "array"
                      }
                    ],
                    "title": "Tone"
                  }
                },
                "title": "VoiceRecommender",
                "type": "object"
              }
            ]
          },
          "minItems": 1,
          "title": "Voices",
          "type": "array"
        },
        "sounds": {
          "additionalProperties": false,
          "properties": {
            "soundDesign": {
              "items": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "alias": {
                        "oneOf": [
                          {
                            "type": "null",
                            "title": "No sound design"
                          },
                          {
                            "type": "string",
                            "title": "Select from the sound library"
                          }
                        ],
                        "default": null,
                        "title": "Alias"
                      },
                      "useSmartFit": {
                        "default": false,
                        "title": "Use smart fit",
                        "description": "Smart fit will automatically cutdown the sound design to fit the ad length.\n",
                        "type": "boolean"
                      }
                    },
                    "title": "Pick your own sound design",
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "mood": {
                        "oneOf": [
                          {
                            "type": "null",
                            "title": "Any mood"
                          },
                          {
                            "items": {
                              "$ref": "#/$defs/items"
                            },
                            "title": "Specify mood(s)",
                            "description": "Specify the moods(s) you want to use for the music.\nYou can specify multiple moods by adding them to the array.\n",
                            "type": "array"
                          }
                        ],
                        "default": null,
                        "title": "Mood"
                      },
                      "useSmartFit": {
                        "default": false,
                        "title": "Use smart fit",
                        "description": "Smart fit will automatically cutdown the sound design to fit the ad length.\n",
                        "type": "boolean"
                      }
                    },
                    "title": "Get a recommended sound design",
                    "type": "object"
                  }
                ]
              },
              "type": "array",
              "minItems": 1
            }
          },
          "title": "Sound",
          "description": "Define how you want the music in your ad to sound.\n",
          "type": "object"
        },
        "production": {
          "description": "Define how you want your ad to be mixed and mastered.\n",
          "properties": {
            "mixingPreset": {
              "description": "Controls how voice, music, SFX, and media assets are blended together. Accepts v4 and v5 preset names; v4 values are mapped to v5 at build time. Defaults to `recommended`, which omits mixing on the v5 audioform so the build-time recommender runs. Explicit values are never overridden.\n",
              "default": "recommended",
              "type": "string",
              "title": "MixingPreset",
              "enum": [
                "balanced",
                "voiceenhanced",
                "musicenhanced",
                "singlevoiceonly",
                "multivoiceonly",
                "story",
                "voiceonly",
                "recommended",
                "neutral",
                "speechDominant",
                "musicDominant",
                "dynamic",
                "compressed",
                "noProcessing"
              ]
            }
          },
          "title": "Production settings",
          "type": "object"
        },
        "delivery": {
          "description": "Define how you want your audio to be delivered.\n",
          "properties": {
            "encoderPreset": {
              "description": "Controls the output format of the audio.\n",
              "default": "mp3",
              "type": "string",
              "title": "EncoderPreset",
              "enum": [
                "mp3",
                "wav",
                "wav320",
                "ogg",
                "flac",
                "mp3VeryLow",
                "mp3Low",
                "mp3Medium",
                "mp3High",
                "mp3VeryHigh",
                "mp3Alexa",
                "mp3Alexa48br",
                "m4a"
              ]
            },
            "loudnessPreset": {
              "description": "Controls the final integrated loudness of your audio. Accepts v4 and v5 preset names; v4 values are mapped to v5 at build time. Defaults to `streaming`. There is no loudness recommender.\n",
              "default": "streaming",
              "type": "string",
              "title": "LoudnessPreset",
              "enum": [
                "streaming",
                "spotify",
                "radio",
                "radioAdvertising",
                "podcast",
                "applePodcast",
                "youtube",
                "lowVol",
                "podcastDynamic",
                "broadcast",
                "digitalPlatform",
                "longFormContent"
              ]
            },
            "public": {
              "default": true,
              "title": "Set whether the audio is public (shareable) or private (not shareable)",
              "type": "boolean"
            }
          },
          "title": "Delivery settings",
          "type": "object"
        }
      },
      "required": [
        "script"
      ]
    },
    "numAds": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5,
      "description": "Number of audio ads to generate",
      "default": 3
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false,
  "$defs": {
    "audioformVersion": {
      "type": "string",
      "enum": [
        "0.0.1",
        "1",
        "2"
      ],
      "description": "The version of the audioform to use in the returned audioforms.\nDefaults to `\"0.0.1\"` for backwards compatibility. We recommend \nusing lastest version to take advantage of latest features.\n",
      "default": "0.0.1"
    }
  }
}