Design Format
Audio
Documentation for the Audio type in the Polotno design JSON Schema.
Type Information
Base Type: object
Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the audio track. |
src | string | URL or data URI of the audio file. |
duration | number | Duration in milliseconds. |
startTime | number | Start offset (0-1). |
endTime | number | End offset (0-1). |
volume | number | Volume level (0-1). |
delay | number | Delay before playing, in milliseconds. |
speed | number | Playback speed multiplier (1 = normal). |
custom | unknown | No 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"
]
}Related Definitions
No related definitions found.