Skip to content
HALOWERK

Tonwerk

declip restore

Decodes up to 20 s (up to 2 channels, native rate up to 48 kHz). Clipping per polarity: samples equal to the maximum (or minimum) value, counted when at least 10 samples and 0.01 % of all samples sit at a level of at least 0.05 full scale in at least three runs. Clipped samples are reconstructed by least-squares autoregressive interpolation (LSAR, Janssen, Veldhuis and Vries 1986): an AR(32) model is estimated by the covariance method from unclipped samples in a 12 288-sample neighbourhood,.

POST https://ton.halowerk.com/v1/declip-restore

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
audio_base64stringNoClipped audio file as base64 (at most 10 MiB decoded; a data: URL prefix is accepted). Formats: WAV/RF64/W64, AIFF, FLAC, MP3/MP2, AAC (ADTS, M4A/MP4), ALAC, Ogg Vorbis/Opus, WebM/Matroska, CAF, WavPack, APE, TTA, AMR, AU, AC-3/E-AC-3, DTS, WMA (ASF), AVI, MPEG-TS/PS, FLV; for video containers the first audio track is used.
audio_urlstringNoPublic http(s) URL of the clipped audio file (at most 10 MiB; private and local addresses are refused).
output_formatstringNoFormat of the restored audio (16-bit).
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "audio_base64": {
      "type": "string",
      "minLength": 16,
      "maxLength": 14000000,
      "description": "Clipped audio file as base64 (at most 10 MiB decoded; a data: URL prefix is accepted). Formats: WAV/RF64/W64, AIFF, FLAC, MP3/MP2, AAC (ADTS, M4A/MP4), ALAC, Ogg Vorbis/Opus, WebM/Matroska, CAF, WavPack, APE, TTA, AMR, AU, AC-3/E-AC-3, DTS, WMA (ASF), AVI, MPEG-TS/PS, FLV; for video containers the first audio track is used."
    },
    "audio_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Public http(s) URL of the clipped audio file (at most 10 MiB; private and local addresses are refused)."
    },
    "output_format": {
      "type": "string",
      "enum": [
        "flac",
        "wav"
      ],
      "default": "flac",
      "description": "Format of the restored audio (16-bit)."
    }
  }
}

Open original schema

Published input example

{
  "audio_base64": "T2dnUwACAAAAAAAAAAA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9cFtr0Q0g=="
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’