remove_silence
Trim silent gaps from video or audio files while keeping tracks in sync. Set silence thresholds and padding to cut dead air and output a cleaner file.
Instructions
Cut silent gaps from a video or audio file while keeping video and audio perfectly in sync.
Args: input_path: Full file path to the source video or audio. output_path: Optional explicit output path. Defaults to '{name}_no_silence.{ext}'. db_threshold: Volume threshold in dB below which sound is considered silence (e.g. -30.0). min_silence_duration: Minimum silence length in seconds to trigger a cut (default: 0.5). padding: Seconds of voice buffer retained before and after speech to avoid clipping (default: 0.1).
Returns: JSON string containing cut statistics, durations, reduction percentage, and output path.
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>"
},
"name": "remove_silence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| padding | No | ||
| input_path | Yes | ||
| output_path | No | ||
| db_threshold | No | ||
| min_silence_duration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |