{
  "slug": "trim-audio",
  "name": "gizza-ai/trim-audio",
  "version": "0.1.0",
  "title": "Trim Audio Online — gizza.ai",
  "description": "Trim any audio file in your browser — keep or remove a start–end range, add edge fades, save as MP3, WAV, FLAC or M4A. Runs locally, nothing is uploaded.",
  "tags": [
    "audio",
    "trim",
    "cut",
    "clip",
    "mp3",
    "ringtone",
    "crop",
    "splice"
  ],
  "category": "audio",
  "urls": {
    "page": "https://gizza.ai/tools/trim-audio/",
    "markdown": "https://gizza.ai/tools/trim-audio/index.md",
    "descriptor": "https://gizza.ai/tools/trim-audio/tool.json",
    "deep_link_example": "https://gizza.ai/tools/trim-audio/?url=https://example.com/input&start=15&mode=keep&format=mp3&fade=true"
  },
  "cli": "gizza tool trim-audio 'url=https://example.com/input' 'start=15' 'mode=keep' 'format=mp3' 'fade=true'",
  "tool": {
    "description": "Trim an audio file: keep just the [start, end] selection (mode=keep) or delete that range and join the rest (mode=remove). Provide either url (HTTP/HTTPS) or ref (id from a prior tool call). Times are in seconds; end 0 or omitted means the end of the track (so start=15 alone drops the first 15 seconds). Output is re-encoded to mp3 (192 kbps), wav, ogg, flac or m4a; an optional short fade avoids clicks at the cut edges (keep mode only).",
    "parameters": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "url"
          ]
        },
        {
          "required": [
            "ref"
          ]
        }
      ],
      "properties": {
        "end": {
          "description": "End of the selection in seconds. 0 or omitted means the end of the track; otherwise must be greater than start.",
          "minimum": 0,
          "type": "number"
        },
        "fade": {
          "default": false,
          "description": "Apply a short fade-in/out (up to 0.5s) at the selection edges to avoid clicks. Keep mode only.",
          "type": "boolean"
        },
        "format": {
          "default": "mp3",
          "description": "Output audio format. Default mp3 (192 kbps).",
          "enum": [
            "mp3",
            "wav",
            "ogg",
            "flac",
            "m4a"
          ],
          "type": "string"
        },
        "mode": {
          "default": "keep",
          "description": "keep extracts just the [start, end] selection; remove deletes that range and joins the rest. Default keep.",
          "enum": [
            "keep",
            "remove"
          ],
          "type": "string"
        },
        "ref": {
          "description": "Reference id from a prior tool call. Use either url or ref.",
          "type": "string"
        },
        "start": {
          "description": "Start of the selection in seconds.",
          "minimum": 0,
          "type": "number"
        },
        "url": {
          "description": "Audio URL (HTTP/HTTPS). Use either url or ref.",
          "type": "string"
        }
      },
      "required": [
        "start"
      ],
      "type": "object"
    }
  }
}