Post-process audio
postprocess_audioTrim silence, crossfade ends to make a loop without a click, and normalize levels to prepare a chosen take as a finished audio asset.
Instructions
Trim the silence, crossfade the ends into a seamless loop, normalise the level. This is the step that turns a chosen take into a finished asset. With loop on, the file is shortened by the crossfade so that it tiles without a click at the seam.
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": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "postprocess_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Crossfade the ends so the file loops seamlessly. | |
| fade_ms | No | Length of the loop crossfade in milliseconds. | |
| input_path | Yes | The audio file to process. | |
| output_path | Yes | Where to write the result (.ogg or .wav). | |
| target_dbfs | No | Target RMS level in dBFS. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| seam | Yes | ||
| seconds | Yes | ||
| rms_dbfs | Yes |