generate_audio_track
Generate AI audio and immediately place it on the edit audio timeline. Returns both the MediaDocV2 ID and the audio track ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Audio model ID | |
| editId | Yes | The edit ID | |
| prompt | Yes | TTS/music/SFX prompt | |
| volume | No | Initial volume | |
| voiceId | No | Voice ID for TTS models | |
| duration | No | Placeholder timeline duration until generation metadata updates | |
| startTime | No | Timeline start time in seconds | |
| fadeInTime | No | Fade-in length in seconds | |
| autoChannel | No | Pick the first non-overlapping channel automatically | |
| fadeOutTime | No | Fade-out length in seconds | |
| stylePrompt | No | Delivery and accent direction for supported speech models | |
| workspaceId | Yes | The workspace ID | |
| pinnedToShotId | No | Optional shot ID to pin this audio to | |
| relativeStartTime | No | Offset in seconds from pinned shot start |