Polotno
Design Format

Audio

Documentation for the Audio type in the Polotno design JSON Schema.

Type Information

Base Type: object

Properties

PropertyTypeDescription
idstringUnique identifier for the audio track.
srcstringURL or data URI of the audio file.
durationnumberDuration in milliseconds.
startTimenumberStart offset (0-1).
endTimenumberEnd offset (0-1).
volumenumberVolume level (0-1).
delaynumberDelay before playing, in milliseconds.
speednumberPlayback speed multiplier (1 = normal).
customunknownNo description provided

JSON Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the audio track."
    },
    "src": {
      "default": "",
      "description": "URL or data URI of the audio file.",
      "type": "string"
    },
    "duration": {
      "default": 0,
      "description": "Duration in milliseconds.",
      "type": "number"
    },
    "startTime": {
      "default": 0,
      "description": "Start offset (0-1).",
      "type": "number"
    },
    "endTime": {
      "default": 1,
      "description": "End offset (0-1).",
      "type": "number"
    },
    "volume": {
      "default": 1,
      "description": "Volume level (0-1).",
      "type": "number"
    },
    "delay": {
      "default": 0,
      "description": "Delay before playing, in milliseconds.",
      "type": "number"
    },
    "speed": {
      "default": 1,
      "description": "Playback speed multiplier (1 = normal).",
      "type": "number"
    },
    "custom": {}
  },
  "required": [
    "id"
  ]
}

No related definitions found.

On this page