Polotno Docs

Audio

Documentation for the Audio schema definition in the Polotno Design JSON Schema.

Audio

Type Information

Base Type: object

Properties

PropertyTypeDescription
delaynumberDelay before playing audio in milliseconds.
durationnumberDuration of the audio in milliseconds.
endTimenumberEnd time offset in seconds (0-1).
idstringUnique identifier for the audio track.
srcstringURL or data URI of the audio file.
startTimenumberStart time offset in seconds (0-1).
volumenumberVolume level (0-1).

JSON Schema

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

No related definitions found.