Audio
WARNING
Available only on animated designs with MP4 output.
An audio layer adds a soundtrack to your animated design. The audio is mixed into the exported MP4 video. Supported codecs: MP3, WAV. Maximum file size: 30 MB.
Speed values above 1 increase playback speed (e.g. 2 = 200%); values below 1 slow it down (e.g. 0.5 = 50%). The valid range is 0.25–2.
Available Properties
| Property | Type | Description | Default |
|---|---|---|---|
audio_url | String | HTTP(s) URL of the audio. Max 30 MB. Supported: mp3, wav | |
max_volume | Float 0–1 | Volume level. 1 = full, 0.5 = half, 0 = silent | 1 |
speed | Float 0.25–2 | Playback speed. 1 = 100%, 0.5 = 50% | 1 |
Example
json
{
"audio_0": {
"audio_url": "https://example.com/audio.mp3",
"speed": 1,
"max_volume": 1
}
}Related
- Element Properties Overview
- Generate Videos — generation endpoint that uses audio
- Video Element
