add_sound
Add music, voice-over, or sound effects to a composition and mix them into the rendered video, with control over start time, file offset, duration, volume, and fades.
Instructions
Put music, a voice-over or an effect under a composition (meta.sounds); it is mixed in when a video renders. src is a sound file under media/ (bring one in with import_file first); at = video seconds it starts; in = seconds into the file; dur = how long it plays (default: to the file's end or the video's); volume (1 = as recorded); fadeIn and fadeOut in seconds. A video layer's own sound is not played: add its file here to hear it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"composition": "<composition>",
"src": "<src>"
},
"name": "add_sound"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| in | No | ||
| dur | No | ||
| src | Yes | ||
| basis | No | What you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it. | |
| fadeIn | No | ||
| volume | No | ||
| fadeOut | No | ||
| message | No | One line saying why, kept with the change in the history | |
| feedback | No | Ids of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again. | |
| confidence | No | How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change. | |
| composition | Yes | Composition name (file in compositions/ without .json) |