{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiostack/json-schema/audiostack-create-brief-response-schema.json",
  "title": "Create Brief Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiostack-brief-api-openapi.yml#/components/schemas/CreateBriefResponse",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "minimum": 1,
          "maximum": 5,
          "items": {
            "$ref": "#/$defs/ResponseData"
          }
        }
      },
      "required": [
        "data"
      ]
    }
  ],
  "additionalProperties": false,
  "$defs": {
    "AdDetails": {
      "title": "Ad details",
      "description": "Details about the generated ad.",
      "type": "object",
      "properties": {
        "script": {
          "$ref": "#/$defs/ScriptDetails"
        },
        "voices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VoiceDetails"
          },
          "description": "Explanations for each voice used in the ad."
        }
      }
    },
    "ResponseData": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "integer",
          "title": "Status code",
          "description": "Status of the rendering of the audioform (200 - completed, 202 - in progress)"
        },
        "audioformId": {
          "type": "string",
          "format": "uuid"
        },
        "audioform": {
          "anyOf": [
            {
              "properties": {
                "header": {
                  "properties": {
                    "version": {
                      "type": "string",
                      "const": "5",
                      "title": "Version"
                    }
                  },
                  "type": "object",
                  "required": [
                    "version"
                  ],
                  "title": "Header"
                },
                "assets": {
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "tts",
                            "title": "Type"
                          },
                          "text": {
                            "type": "string",
                            "title": "Text",
                            "description": "The text to be spoken.\n"
                          },
                          "voiceRef": {
                            "type": "string",
                            "title": "Voice asset reference",
                            "description": "The asset reference (within the audioform) of the Voice with which to generate the asset.\n"
                          },
                          "useVoiceIntelligenceLayer": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "use Voice Intelligence Layer",
                            "description": "[optional] defaults to `false`. If set to `true` the voice will use the voice intelligence layer\nwhich is a technology that helps with getting a more natural pronunciation.\n"
                          },
                          "language": {
                            "$ref": "#/$defs/items",
                            "description": "Required when `useVoiceIntelligenceLayer` is `true`. The language for the voice intelligence layer.\n"
                          },
                          "anchor": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Anchor",
                            "description": "[optional] string - specify this value to enable TTS locking. Any other audioform using a TTS with\nthe same parameters (including voice parameters) and the same anchor will sound the same.\n\nIf this is not specified the TTS in the result will still get a uniquely generated value by the\nserver so that you can lock the value.\n"
                          }
                        },
                        "allOf": [
                          {
                            "type": "object",
                            "required": [
                              "type",
                              "text",
                              "voiceRef"
                            ]
                          },
                          {
                            "if": {
                              "properties": {
                                "useVoiceIntelligenceLayer": {
                                  "const": true
                                }
                              },
                              "required": [
                                "useVoiceIntelligenceLayer"
                              ]
                            },
                            "then": {
                              "required": [
                                "language"
                              ]
                            }
                          }
                        ],
                        "type": "object",
                        "title": "TTS",
                        "description": "Text-to-speech generation using the voice referenced by `voiceRef`. To enforce a target duration, add a `timeConstraint` in `production.constraints`.\n"
                      },
                      {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "sts",
                            "title": "Type"
                          },
                          "mediaRef": {
                            "type": "string",
                            "title": "Media asset reference within the audioform",
                            "description": "The asset reference to the media file that contains the recording of the source speech\n"
                          },
                          "voiceRef": {
                            "type": "string",
                            "title": "Voice asset reference within the audioform",
                            "description": "the asset reference of the Voice with which to generate the asset.\n"
                          }
                        },
                        "type": "object",
                        "required": [
                          "type",
                          "mediaRef",
                          "voiceRef"
                        ],
                        "title": "STS",
                        "description": "Speech-to-speech: re-renders the source `mediaRef` recording with the voice referenced by `voiceRef`. To enforce a target duration, add a `timeConstraint` in `production.constraints`.\n"
                      },
                      {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "speech",
                            "title": "Type"
                          },
                          "speechId": {
                            "type": "string",
                            "format": "uuid",
                            "title": "Speech UUID",
                            "description": "The UUID of a previously generated Speech asset (e.g. produced by the Speech service). Used to embed an existing Speech result inside the audioform.\n"
                          },
                          "sectionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Section UUID",
                            "description": "[optional] If the source Speech contains multiple sections, the UUID of the specific section to be embedded.\n"
                          }
                        },
                        "type": "object",
                        "required": [
                          "type",
                          "speechId"
                        ],
                        "title": "Speech",
                        "description": "References a previously generated Speech asset by its `speechId`. Unlike TTS, Speech assets are pre-generated outside of the audioform request.\n"
                      },
                      {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "media",
                            "title": "Type"
                          },
                          "fileId": {
                            "type": "string",
                            "title": "File UUID",
                            "description": "The fileId is UUID of the form `12345678-baad-baad-baadbaadbaad`.\n\nIt corresponds to a custom audio file stored in your [private library](https://docs.audiostack.ai/docs/libraries).\n"
                          },
                          "smartFit": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Smart-fit feature enabled",
                            "description": "[optional] defaults to `false`. If set to `true` the media will be edited so that it combines the begin and the end of the file in a smart way so the audio always sounds great and natural for the requested `targetDuration`.\n\nWhen `smartFit` is `true`, `targetDuration` must be set and greater than `0`, and `category` must be `\"music\"`.\n"
                          },
                          "targetDuration": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Target duration in seconds",
                            "description": "[optional]. Only used in conjunction with `smartFit = true`. Specifies the duration of the resulting media after smart-fit editing.\n\nMust be omitted (or `null`) when `smartFit` is `false` or absent.\n"
                          },
                          "category": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Media category",
                            "description": "[optional] free-form category of the media file. Must be `\"music\"` when `smartFit` is `true`.\n"
                          }
                        },
                        "type": "object",
                        "required": [
                          "type",
                          "fileId"
                        ],
                        "title": "Media"
                      },
                      {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "voice",
                            "title": "Type"
                          },
                          "voiceAlias": {
                            "type": "string",
                            "title": "Voice alias",
                            "description": "The alias of the voice (unique to the voice). Corresponds to a voice in our voice library.\nLearn more about voices in the [documentation](https://docs.audiostack.ai/docs/voice-library-1).\nNote that all voices are not suitable for STS, all voices are suitable for TTS.\n"
                          },
                          "speed": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Speed",
                            "minimum": 0.8,
                            "maximum": 1.2,
                            "default": 1,
                            "description": "[optional], defaults to `1`. Adjust the speed of the voice from `0.8` to `1.2`.\n"
                          },
                          "voicePreset": {
                            "default": "standard",
                            "type": "string",
                            "enum": [
                              "standard",
                              "expressive",
                              "standard.normalised.beta",
                              "expressive.normalised.beta"
                            ],
                            "title": "VoicePreset"
                          }
                        },
                        "type": "object",
                        "required": [
                          "type",
                          "voiceAlias"
                        ],
                        "title": "Voice",
                        "description": "A voice asset references one of the voices from our catalogue.\n\nSee [AudioStack Voices & Text-to-Speech](https://docs.audiostack.ai/docs/voice-library-1) for more details.\n\nNote that all voices are not suitable for STS, all voices are suitable for TTS.\n"
                      },
                      {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "soundTemplate",
                            "title": "Type"
                          },
                          "soundTemplateAlias": {
                            "type": "string",
                            "title": "Sound template alias",
                            "description": "The alias of the sound template (unique to the sound template). Corresponds to a sound template in our sound template library or in your private library.\nLearn more about sound templates in the documentation.\n"
                          }
                        },
                        "type": "object",
                        "required": [
                          "type",
                          "soundTemplateAlias"
                        ],
                        "title": "SoundTemplate",
                        "description": "Corresponds to a [sound template](https://docs.audiostack.ai/docs/sound-template-library) (either in our sound template library or uploaded by our clients and private to them).\n\nA sound template cannot be put in a clip as they don't have an inherent duration. Use a _sound template snippet_ for this.\n"
                      },
                      {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "soundTemplateSnippet",
                            "title": "Type"
                          },
                          "soundTemplateRef": {
                            "type": "string",
                            "title": "Sound template asset reference within the audioform",
                            "description": "The asset reference to the sound template to be used in the snippet.\n"
                          },
                          "targetReadPosition": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Target read position in seconds",
                            "description": "optional, and `0 second` if not specifed. Where do we start reading in the sound template."
                          },
                          "targetDuration": {
                            "type": "number",
                            "title": "Target duration in seconds",
                            "description": "Required. The duration in seconds of the snippet to be generated from the sound template.\n"
                          },
                          "smartFit": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Smart fit",
                            "description": "[optional] defaults to `false`. If set to `true` the snippet is following the smart fit feature. Refer to the sound template asset for more details.\n\nIf `smartFit` is true, `targetReadPosition` must be `0` (or not specified).\n"
                          }
                        },
                        "type": "object",
                        "required": [
                          "type",
                          "soundTemplateRef",
                          "targetDuration"
                        ],
                        "title": "Sound Template Snippet",
                        "description": "Create an audio file of a given duration from a sound template, that can be used in a Clip."
                      },
                      {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "soundEffect",
                            "title": "Type"
                          },
                          "soundEffectAlias": {
                            "type": "string",
                            "title": "Sound effect alias",
                            "description": "The alias of the sound effect (unique to the sound effect). Corresponds to a sound effect in our sound effect library.\nLearn more about sound effects in the documentation.\n"
                          }
                        },
                        "type": "object",
                        "required": [
                          "type",
                          "soundEffectAlias"
                        ],
                        "title": "Sound Effect"
                      }
                    ]
                  },
                  "type": "object",
                  "title": "Assets"
                },
                "production": {
                  "properties": {
                    "constraints": {
                      "type": "array",
                      "items": {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "timeConstraint",
                            "title": "Type"
                          },
                          "assets": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "minItems": 1,
                            "title": "Assets",
                            "description": "Asset references that share this duration budget. Each asset must exist in the audioform's `assets` map and must be of type `tts`, `sts` or `speech`. An asset can be referenced by **at most one** constraint.\n"
                          },
                          "groupTargetDuration": {
                            "type": "number",
                            "exclusiveMinimum": 0,
                            "title": "Group target duration in seconds",
                            "description": "Asks the system to match the targeted assets to a certain time. The duration is shared across **all** assets listed in the constraint, so it acts as a group budget. The system might not be able to match this exact duration but will try its best, applying time-stretching across the assets within the configured speed-up / slow-down limits.\n"
                          },
                          "targetDurationSpeedUpLimit": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 4,
                            "default": 1.2,
                            "title": "Target duration speed-up limit",
                            "description": "optional, must be `≥1` and defaults to `1.2`\n\nThis is the limits of the duration change that the system will apply to the asset to avoid it sounding unnatural.\n"
                          },
                          "targetDurationSlowDownLimit": {
                            "type": "number",
                            "minimum": 1,
                            "default": 1.2,
                            "title": "Target duration slow-down limit",
                            "description": "optional, must be `≥1` and defaults to `1.2`\n\nThis is the limits of the duration change that the system will apply to the asset to avoid it sounding unnatural.\n"
                          }
                        },
                        "type": "object",
                        "required": [
                          "type",
                          "assets",
                          "groupTargetDuration"
                        ],
                        "title": "Time Constraint",
                        "description": "Production-level constraint that applies a shared duration budget to a group of one or more `tts`, `sts` or `speech` assets. Replaces the per-asset `targetDuration` fields that existed in Audioform v3.\n"
                      },
                      "title": "Constraints",
                      "default": [],
                      "description": "Optional list of production-level constraints applied across one or more assets. Currently the only constraint type is `timeConstraint`, which lets you specify a shared duration budget for a group of `tts`, `sts` or `speech` assets. Each asset can be referenced by **at most one** constraint.\n"
                    },
                    "arrangement": {
                      "properties": {
                        "sections": {
                          "items": {
                            "properties": {
                              "layers": {
                                "items": {
                                  "properties": {
                                    "clips": {
                                      "items": {
                                        "properties": {
                                          "assetRef": {
                                            "type": "string",
                                            "title": "Asset reference",
                                            "description": "The asset reference (within the audioform) of the asset to be used in the clip.\n"
                                          },
                                          "readPosition": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Read position in seconds",
                                            "description": "[optional, defaults to `0s` ]: position in the source asset where the clip starts\n"
                                          },
                                          "forcedDuration": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Forced duration in seconds",
                                            "description": "[optional]: if not set, the clip assume the duration necessary to encompass exactly the asset (minus read position).\nIf set, it will have the specified duration (in seconds).\nIf the asset is shorter there will be silence at the end. If the asset is longer the asset will be clipped.\n"
                                          },
                                          "marginStart": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Margin start in seconds",
                                            "description": "[optional, defaults to `0s`]: a silence before the clip.\n"
                                          },
                                          "marginEnd": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Margin end in seconds",
                                            "description": "[optional, defaults to `0s`]: a silence after the clip.\n"
                                          },
                                          "fadeIn": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Fade-in in seconds",
                                            "description": "[optional, defaults to `0`]: ramp up duration of the volume of the clip at the beginning of the clip.\n"
                                          },
                                          "fadeOut": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Fade-out in seconds",
                                            "description": "[optional, defaults to `0`]: ramp down duration of the volume of the clip at the end of the clip.\n"
                                          },
                                          "gain": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Gain in dB",
                                            "minimum": -24,
                                            "maximum": 24,
                                            "description": "[optional, defaults to `0 dB`]: a relative gain in `dB` to what the mastering engine would normally compute to make the clip louder or quieter.\n"
                                          },
                                          "blendBase": {
                                            "anyOf": [
                                              {
                                                "type": "boolean"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Blendbase",
                                            "default": false,
                                            "description": "[optional, defaults to `false`]. When `true`, this clip is the base over which other `blendElement` clips in the same layer are blended. At most one clip per layer can be `blendBase = true`. A clip cannot be both `blendBase` and `blendElement`.\n"
                                          },
                                          "blendElement": {
                                            "anyOf": [
                                              {
                                                "type": "boolean"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "title": "Blendelement",
                                            "default": false,
                                            "description": "[optional, defaults to `false`]. When `true`, this clip is blended on top of the layer's `blendBase` clip. A clip cannot be both `blendBase` and `blendElement`.\n"
                                          },
                                          "placement": {
                                            "default": "foreground",
                                            "description": "[optional, defaults to `foreground`]. Whether this clip is to be treated as foreground or background content by the mixing engine.\n",
                                            "type": "string",
                                            "enum": [
                                              "background",
                                              "foreground"
                                            ],
                                            "title": "Placement"
                                          }
                                        },
                                        "type": "object",
                                        "required": [
                                          "assetRef"
                                        ],
                                        "title": "Clip",
                                        "description": "The clips are placed within a layer contiguously. They have a margin property that allow them to be spaced and not strictly contiguous.\n\nThey can also have a fade in and fade out, so that the volume ramps up at the beginning and ramps down at the end. Note that fades don't change the duration.\n\nA clip can contain any of the time assets.\n\nSeveral clips can refer to the same asset. See the clip as putting a part (or all) of an asset on the timeline. If the user wants to cut a sound in two for example, it would create two clips.\n"
                                      },
                                      "type": "array",
                                      "title": "Clips",
                                      "minItems": 1,
                                      "description": "The clips are placed within a layer contiguously. They have a margin property that allow them to be spaced and not strictly contiguous.\n\nThey can also have a fade in and fade out, so that the volume ramps up at the beginning and ramps down at the end. Note that fades don't change the duration.\n\nA clip can contain any of the time assets.\n\nSeveral clips can refer to the same asset. See the clip as putting a part (or all) of an asset on the timeline. If the user wants to cut a sound in two for example, it would create two clips.\n"
                                    },
                                    "alignment": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "start",
                                            "end",
                                            "middle"
                                          ],
                                          "title": "Alignment"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "The alignment is within the containing section space created between the section paddingStart and paddingEnd.\n\nThe values can be `start`, `end` or `middle`.\n\nNote that if the section duration is free (e.g. there no forcedDuration) then the alignment is equivalent to aligning relative to the longest layer (because the section adapts to the longest layer).\n\nA layer _always_ has the length of its content (e.g. the clips).\n"
                                    }
                                  },
                                  "type": "object",
                                  "required": [
                                    "clips"
                                  ],
                                  "title": "Layer"
                                },
                                "type": "array",
                                "title": "Layers",
                                "description": "The layers containst clips. All the layers play _together_, mixing their content to create the final audioform.\n"
                              },
                              "soundTemplateRef": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Sound template asset reference within the audioform",
                                "description": "[optional] - if specified, the asset reference of the sound template to play as background audio for the section.\n\nThe sound template adapts to the section duration.\n"
                              },
                              "forcedDuration": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Forced duration in seconds",
                                "description": "[optional]\n- if specified the section will have that exact duration.\n  If the one of the layer is smaller there will be silence at the end. If a layer is longer it will be clipped, at the begining, the end or each side depending on the alignement (see layers).\n  Behaviour is not defined if `forcedDuration < paddingStart + paddingEnd`\n- If not set, then the duration is size of the longest layer, plus the padding.\n"
                              },
                              "paddingStart": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Padding start in seconds",
                                "description": "[optional] : defaults to `0 seconds`. This is marging before the layers, e.g. the layers will start after the padding. The sound template (if set) will play during that time.\n"
                              },
                              "paddingEnd": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Padding end in seconds",
                                "description": "[optional] : defaults to `0 seconds`. This is the margin after the end of the longest layer. The sound template (if set) will play during that time. Note that if `forcedDuration` is set, the layers will be clipped but `paddingEnd` time will be preserved.\n"
                              },
                              "smartFit": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Smart-fit feature enabled",
                                "description": "[optional] defaults to false.  If set to true the sound template will be edited so that it combines the begin and the end of the file in a smart way so ending of the audio always sound great and natural.\n"
                              }
                            },
                            "type": "object",
                            "required": [
                              "layers"
                            ],
                            "title": "Section"
                          },
                          "type": "array",
                          "title": "Sections"
                        },
                        "forcedDuration": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Forced duration in seconds",
                          "description": "Optional. If specified the arrangement (e.g. the audioform) will have that exact duration.\n\n- If the content is smaller there will be silence at the end.\n\n- If the content is longer, it will be clipped (the fade-out will still be applied at the end).\n\n- If not set, then the duration is the sum of the duration of all the sections  (e.g. the arrangement adapts to the duration of its content)\n"
                        },
                        "fadeIn": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Fade-in",
                          "description": "Expressed in seconds, optional and defaults to 0.\nThe fade-in is the duration of the fade-in effect at the beginning of the audioform.\n"
                        },
                        "fadeOut": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Fade-out",
                          "description": "Expressed in seconds, optional and defaults to 0.\nThe fade-out is the duration of the fade-out effect at the end of the audioform.\n"
                        },
                        "usePlaybackGainHints": {
                          "anyOf": [
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "use playback gain hints",
                          "description": "Optional and defaults to false. When enabled (`true`), all assets (excepted Voice) will get a new property in the result called `playbackGainHint`.\n\nThis is a `dB` (decibel) value on the asset that helps the browser to locally rebuild the audioform from the asset.\n\nIn order to be as close as possible to the mastering engine render of the audioform (available in the Delivery section result as the uri parameter) the browser has to play the asset with the playbackGainHint value applied.\n\nThe browser needs to combine this with the clip gain to get the correct playback gain if the asset is played in a clip.\n"
                        }
                      },
                      "type": "object",
                      "required": [
                        "sections"
                      ],
                      "title": "Arrangement"
                    },
                    "mixingPreset": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "neutral",
                            "speechDominant",
                            "musicDominant",
                            "dynamic",
                            "compressed",
                            "noProcessing"
                          ],
                          "title": "Mixing preset",
                          "description": "The mixing preset to be used for the production.\n\n- `neutral`, `speechDominant`, `musicDominant` — general-purpose mixing presets that adjust the relative loudness of voice vs. music.\n- `dynamic` — preset optimised for narrative / spoken-word productions.\n- `compressed` — dense, loud treatment. Only set it if agreed with support.\n- `noProcessing` — preset optimised for productions containing only voices. Applies no processing and no ducking.\n\nRefer to the general documentation for more details on the mixing presets.\n"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "[optional] — if omitted, the recommender selects the appropriate preset at build time based on the rendered arrangement.\n"
                    }
                  },
                  "type": "object",
                  "required": [
                    "arrangement"
                  ],
                  "title": "Production"
                },
                "delivery": {
                  "properties": {
                    "loudnessPreset": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "broadcast",
                            "digitalPlatform",
                            "longFormContent"
                          ],
                          "title": "Loudness preset",
                          "description": "How loud should it be in term of LUFS and compression.\n"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "[optional] — defaults to `digitalPlatform` when omitted. There is no loudness recommender.\n"
                    },
                    "encoderPreset": {
                      "type": "string",
                      "enum": [
                        "mp3",
                        "wav",
                        "wav320",
                        "ogg",
                        "flac",
                        "mp3VeryLow",
                        "mp3Low",
                        "mp3Medium",
                        "mp3High",
                        "mp3VeryHigh",
                        "mp3Alexa",
                        "mp3Alexa48br",
                        "m4a"
                      ],
                      "title": "EncoderPreset",
                      "description": "The encoder preset to be used for the delivery.\n"
                    },
                    "public": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "title": "Public",
                      "description": "Should the delivery audiofile be publicly available or private."
                    }
                  },
                  "type": "object",
                  "required": [
                    "encoderPreset"
                  ],
                  "title": "Delivery"
                }
              },
              "type": "object",
              "required": [
                "header",
                "assets",
                "production",
                "delivery"
              ],
              "title": "Audioform v5"
            },
            {
              "$ref": "#/$defs/AudioformInput"
            },
            {
              "$ref": "#/$defs/AudioformInput"
            },
            {
              "$ref": "#/$defs/AudioformInput"
            },
            {
              "$ref": "#/$defs/AudioformInput"
            }
          ],
          "title": "Audioform"
        },
        "details": {
          "oneOf": [
            {
              "$ref": "#/$defs/AdDetails"
            },
            {
              "type": null,
              "description": "No details available for the ad."
            }
          ],
          "description": "Details for the script and voices used in the ad."
        }
      },
      "required": [
        "statusCode",
        "audioformId",
        "audioform",
        "details"
      ],
      "additionalProperties": false
    },
    "ScriptDetails": {
      "type": "object",
      "properties": {
        "tone": {
          "oneOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Tone descriptors for the script"
            },
            {
              "type": null,
              "description": "No tone information available for the script."
            }
          ]
        },
        "messages": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": [],
          "description": "Explanatory messages about the script."
        }
      }
    },
    "VoiceDetails": {
      "type": "object",
      "properties": {
        "voice_reference": {
          "type": "string",
          "description": "Reference to the voice asset."
        },
        "tone": {
          "oneOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Descriptions of the tone with which the voice speaks."
            },
            {
              "type": null,
              "description": "No tone information available for the voice."
            }
          ]
        },
        "messages": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": [],
          "description": "Explanatory messages about the voice."
        }
      },
      "required": [
        "voice_reference"
      ]
    }
  }
}