{
  "slug": "audio-resampler",
  "name": "gizza-ai/audio-resampler",
  "version": "0.1.0",
  "title": "Resample Audio Online — gizza.ai",
  "description": "Change any audio file's sample rate — 8 kHz voice to 192 kHz studio — with high-quality ffmpeg resampling, right in your browser. Runs locally, nothing is uploaded, free.",
  "tags": [
    "audio",
    "resample",
    "sample-rate",
    "hz",
    "44100",
    "48000",
    "16000",
    "ffmpeg"
  ],
  "category": "audio",
  "urls": {
    "page": "https://gizza.ai/tools/audio-resampler/",
    "markdown": "https://gizza.ai/tools/audio-resampler/index.md",
    "descriptor": "https://gizza.ai/tools/audio-resampler/tool.json",
    "deep_link_example": "https://gizza.ai/tools/audio-resampler/?url=https://example.com/input&rate=44100&format=wav"
  },
  "cli": "gizza tool audio-resampler 'url=https://example.com/input' 'rate=44100' 'format=wav'",
  "tool": {
    "description": "Change an audio file's sample rate (Hz) using ffmpeg's high-quality windowed-sinc resampler. Provide either url (HTTP/HTTPS) or ref (id from a prior tool call) plus rate (target Hz, e.g. 44100 or 48000; any integer 3000-384000). format selects the output container: wav (default) and flac are lossless, best for a clean resample; mp3/ogg/m4a are lossy and encode at 192 kbps. Upsampling never adds detail the source lacks — it just changes the rate. Any input ffmpeg can decode works; embedded album art is dropped.",
    "parameters": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "url"
          ]
        },
        {
          "required": [
            "ref"
          ]
        }
      ],
      "properties": {
        "format": {
          "default": "wav",
          "description": "Output format (default wav). wav/flac are lossless (best for a clean resample); mp3/ogg/m4a are lossy and encode at 192 kbps.",
          "enum": [
            "wav",
            "flac",
            "mp3",
            "ogg",
            "m4a"
          ],
          "type": "string"
        },
        "rate": {
          "description": "Target sample rate in Hz. Common values: 8000/16000 (speech), 22050, 32000, 44100 (CD), 48000 (video/DAW), 88200, 96000, 192000 (studio). Any integer 3000-384000 is accepted.",
          "maximum": 384000,
          "minimum": 3000,
          "type": "integer"
        },
        "ref": {
          "description": "Reference id from a prior tool call. Use either url or ref.",
          "type": "string"
        },
        "url": {
          "description": "Audio URL (HTTP/HTTPS). Use either url or ref.",
          "type": "string"
        }
      },
      "required": [
        "rate"
      ],
      "type": "object"
    }
  }
}