{
  "$schema": "https://json-schema.org/draft-07/schema",
  "title": "SingleAudioAttachment",
  "description": "Recommended schema to use for audio attachments in the Fediverse. This schema is for audio containing a single URL for the image content.",
  "type": "object",
  "properties": {
    "type": {
      "const": "Audio"
    },
    "name": {
      "type": "string",
      "description": "The alt text. Alternative textual description for accessibility or if the media fails to load.",
      "examples": ["A beautiful mooing"]
    },
    "url": {
      "type": "string",
      "description": "URL the media can be downloaded from.",
      "examples": ["https://domain.example/image.jpg"]
    },
    "mediaType": {
      "type": "string",
      "description": "MIME type of the media attachment.",
      "examples": ["audio/mp4"]
    },
    "digestMultibase": {
      "type": "string",
      "description": "Multibase encoded digest, see https://www.multiformats.io/multihash/",
      "examples": ["zQmaeDPzhNL32WQZnnzB1H6QJWvvFNEHdViDB71yrxyXU1t"]
    },
    "size": {
      "type": "integer",
      "description": "Size in bytes of the media attachment.",
      "examples": [9045]
    },
    "duration": {
      "type": "string",
      "description": "ISO 8601 encoded length of the audio",
      "examples": ["PT15S"]
    }
  },
  "required": ["type", "mediaType", "url", "duration"]
}
