setAudio
Adjust an existing audio track by ID to change volume, timing, fades, looping, mute, or lane; only specified fields update.
Instructions
Move, resize, re-level, re-lane, mute, loop, fade or re-point an existing audio track by id (virtual-timeline seconds). Only the fields you pass are changed. Use it to duck a bed under narration (gainDb), to fade it in or out (fadeInMs / fadeOutMs, 0 to 5000 ms), to shift what part of the file plays (offsetSec), or to move it between the voiceover and music lanes (kind). The whole track is edited, not one fragment of it, so a track split across a cut stays one thing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| loop | No | ||
| muted | No | ||
| endSec | No | ||
| gainDb | No | ||
| audioId | Yes | ||
| fadeInMs | No | ||
| startSec | No | ||
| fadeOutMs | No | ||
| offsetSec | No | ||
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. |