addAudio
Overlay an imported audio file onto a recording's timeline for voiceover or music. Set start time, duration, gain, fades, and lane to control playback and transcription.
Instructions
Lay an ALREADY-IMPORTED audio file over the recording across a span of the edited timeline (virtual seconds): a voiceover, or a music bed. assetId must name an asset whose kind is 'audio' — getCurrentDocument lists them. If there is none, a file has to be imported first (importMedia, where it is offered): never guess an id. Omit endSec to play the whole file from offsetSec. kind picks the lane ('voiceover' or 'music'). offsetSec is where in the FILE playback starts, gainDb its level (0 unchanged, negative ducks it), fadeInMs / fadeOutMs its fades (0 to 5000 ms, default none; a track too short for both shares its span between them). A voiceover-lane track is also what gets transcribed, so the lane is not only cosmetic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | music | |
| endSec | No | ||
| gainDb | No | ||
| assetId | Yes | ||
| fadeInMs | No | ||
| startSec | Yes | ||
| 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. |