{
  "slug": "audio-edge-silence-trimmer",
  "name": "gizza-ai/audio-edge-silence-trimmer",
  "version": "0.1.0",
  "title": "Trim Leading & Trailing Silence from Audio Online — gizza.ai",
  "description": "Cut dead air at the start and end of a recording while leaving middle pauses untouched — set a threshold and edge pad. Runs locally, nothing uploaded.",
  "tags": [
    "audio",
    "silence",
    "trim",
    "edge",
    "leading",
    "trailing",
    "dead air",
    "podcast",
    "voice"
  ],
  "category": "audio",
  "urls": {
    "page": "https://gizza.ai/tools/audio-edge-silence-trimmer/",
    "markdown": "https://gizza.ai/tools/audio-edge-silence-trimmer/index.md",
    "descriptor": "https://gizza.ai/tools/audio-edge-silence-trimmer/tool.json",
    "deep_link_example": "https://gizza.ai/tools/audio-edge-silence-trimmer/?url=https://example.com/input&threshold_db=-50&pad=0.1&format=mp3"
  },
  "cli": "gizza tool audio-edge-silence-trimmer 'url=https://example.com/input' 'threshold_db=-50' 'pad=0.1' 'format=mp3'",
  "tool": {
    "description": "Remove only the leading and trailing silence from an audio recording, leaving the body — including any pauses in the middle — untouched (ffmpeg silenceremove + areverse). Provide either url (HTTP/HTTPS) or ref (id from a prior tool call). Audio quieter than threshold_db (default -50) at the very start/end counts as silence; pad seconds of silence are kept at each edge (default 0.1) so the cut isn't abrupt. Output is re-encoded to mp3 (192 kbps), wav, ogg, flac or m4a. To strip pauses inside the recording too, use audio-silence-remove.",
    "parameters": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "url"
          ]
        },
        {
          "required": [
            "ref"
          ]
        }
      ],
      "properties": {
        "format": {
          "default": "mp3",
          "description": "Output audio format. Default mp3 (192 kbps).",
          "enum": [
            "mp3",
            "wav",
            "ogg",
            "flac",
            "m4a"
          ],
          "type": "string"
        },
        "pad": {
          "description": "Seconds of silence to keep at each edge so the cut isn't abrupt (default 0.1). Use 0 for a hard cut.",
          "minimum": 0,
          "type": "number"
        },
        "ref": {
          "description": "Reference id from a prior tool call. Use either url or ref.",
          "type": "string"
        },
        "threshold_db": {
          "description": "Silence threshold in dB (default -50). Audio quieter than this at the very start/end counts as silence and is trimmed.",
          "maximum": 0,
          "type": "number"
        },
        "url": {
          "description": "Audio URL (HTTP/HTTPS). Use either url or ref.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}