Openverse · Schema

AudioAltFile

A set of alternative files for a single audio object, rendered as a part of the ``AudioSerializer`` output.

ImagesAudioCreative CommonsOpen MediaSearchOpen DataCultural HeritageMuseums

Properties

Name Type Description
url string URL of the alternative file.
bit_rate integer Bit rate of the alternative file.
filesize integer Size of the alternative file in bytes.
filetype string File type of the alternative file.
sample_rate integer Sample rate of the alternative file.
View JSON Schema on GitHub

JSON Schema

audioaltfile.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.openverse.org/v1/schema/AudioAltFile",
  "title": "AudioAltFile",
  "type": "object",
  "description": "A set of alternative files for a single audio object,\nrendered as a part of the ``AudioSerializer`` output.",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL of the alternative file."
    },
    "bit_rate": {
      "type": "integer",
      "minimum": 0,
      "description": "Bit rate of the alternative file."
    },
    "filesize": {
      "type": "integer",
      "minimum": 0,
      "description": "Size of the alternative file in bytes."
    },
    "filetype": {
      "type": "string",
      "description": "File type of the alternative file."
    },
    "sample_rate": {
      "type": "integer",
      "minimum": 0,
      "description": "Sample rate of the alternative file."
    }
  },
  "required": [
    "filetype",
    "url"
  ]
}