Skip to main content

Audio Elements

audios adds background music, narration, and sound effects to the project. Audio items are not visual elements and do not use type.

Interface

interface AudioItem {
src: string;
enter?: number;
exit?: number;
volume?: number;
speed?: number;
audioBegin?: number;
audioEnd?: number;
audioDuration?: number;
}

Required Fields

PropertyTypeNotes
srcstringRemote http or https audio URL.

Properties

PropertyDefaultRange/notes
enter0Start time on the project timeline.
exitproject.durationEnd time on the project timeline.
audioBegin0Start point in source audio.
audioEndproject or source durationEnd point in source audio.
audioDurationproject or source durationSource duration hint.
volume10 to 1.
speed10.1 to 10.

Examples

Background Music

{
"src": "https://cdn.pixabay.com/audio/2025/03/19/audio_56ae1dae5f.mp3",
"volume": 0.3,
"enter": 0,
"exit": 10
}

Sound Effect

{
"src": "https://cdn.pixabay.com/audio/2025/01/13/audio_c2af364af2.mp3",
"volume": 0.8,
"enter": 2,
"exit": 4
}

Source Segment

{
"src": "https://cdn.pixabay.com/audio/2025/04/21/audio_ed6f0ed574.mp3",
"audioBegin": 10,
"audioEnd": 20,
"volume": 0.5,
"enter": 0,
"exit": 10
}