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. The sum of startInSource and duration must be less than or equal to sourceDuration. |
sourceDuration | number | true | - | - | The total duration of the source audio file, in seconds. This field should match the actual length 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
sourceDuration
field must match the actual duration of the source audio file. The sum ofstartInSource
andduration
must be less than or equal tosourceDuration
, which allows you to use only a portion of the audio clip in the timeline - usuallystartInSource
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 "sourceDuration": 131.160813,
10 "volume": 1
11}
12