Prop | Type | Required | Example | Value Range | Description |
---|---|---|---|---|---|
externalUrl | string | false | - | - | The URL of the audio file from an external source. |
ext | string | true | - | - | The file extension of the audio (e.g., "mp3", "wav"). |
startInSource | number | true | - | - | The start time of the audio clip in the source file, in seconds. Usually 0, only differs from 0 when the audio node has been trimmed from the front of the source audio. |
isFrontTrimmed | boolean | false | - | - | Indicates whether the audio has been trimmed from the front of the source audio. Should be set to true when startInSource is not 0. |
volume | number | true | - | 0 - 1 | The volume level of the audio element. 1 represents full volume, and 0 represents muted. |
Note: The externalUrl must be accessible. The
startInSource
allows you to use only a portion of the audio clip in the timeline - usually this is 0, and only differs from 0 when the audio node has been trimmed from the front of the source audio. WhenstartInSource
is not 0, you should setisFrontTrimmed
to true. Thevolume
field enables volume adjustments for precise sound control.
1{
2 "id": "9bf3d1d3-a961-4457-9dd2-2def3109680a",
3 "type": "Audio",
4 "start": 0,
5 "duration": 131.160813,
6 "trackIndex": 0,
7 "ext": "Flow",
8 "startInSource": 0,
9 "volume": 1
10}
11