Audio properties in RenderScript
Duration
Duration in seconds, or 'media' to match the source audio's full length.
Example
"duration": "media",
Default
"duration": "media",
Source
URL or GUID of the audio file. When using AI generation (via 'provider' property), this becomes the text prompt for audio generation.
Example
"source": "https://...",
Default
"source": null,
Provider
Enables AI audio generation using specified provider and model (such as ElevenLabs or OpenAI). When set, the 'source' value is used as the generation prompt. Use the template editor to understand how the provider is formatted.
Example
"provider": "elevenlabs ...",
"source": "A soothing voice narration"
Default
"provider": null,
Audio trimming
Extract a portion of the source audio. 'trim_start' sets the starting point (seconds), 'trim_duration' limits the extracted length (seconds). Both work together to define the clip boundaries.
Example
"trim_start": 5,
"trim_duration": 10,
Defaults
"trim_start": null,
"trim_duration": null,
Loop
Repeats the audio continuously when it ends. Cannot be used with trim_start or trim_duration properties.
Example
"loop": true,
Default
"loop": false,
Volume
Audio volume level from 0% (muted) to 100% (original volume).
Example
"volume": "50%",
Default
"volume": "100%",
Audio fading
Gradual volume transitions at audio boundaries. 'audio_fade_in' creates a fade from silence over the specified duration (seconds) at the start, 'audio_fade_out' fades to silence at the end.
Example
"audio_fade_in": 2,
"audio_fade_out": 2,
Defaults
"audio_fade_in": null,
"audio_fade_out": null,