Skip to content
HALOWERK

Tonwerk

codec history

Reads codec, bitrate and encoder tags with ffprobe and decodes up to 60 s (mono mix, native rate up to 96 kHz). The encoder lowpass is found as a spectral cliff in a Welch long-term spectrum (15 dB criterion, see true-bandwidth). For MP3 the cliff is compared with the LAME 3.100 lowpass table (optimum_bandwidth() in libmp3lame/lame.c): a cliff more than 1.5 kHz below the value expected for the declared bitrate means the content was probably encoded before at the bitrate whose lowpass is.

POST https://ton.halowerk.com/v1/codec-history

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
audio_base64stringNoAudio 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 audio file (at most 10 MiB; private and local addresses are refused).
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "audio_base64": {
      "type": "string",
      "minLength": 16,
      "maxLength": 14000000,
      "description": "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 audio file (at most 10 MiB; private and local addresses are refused)."
    }
  }
}

Open original schema

Published input example

{
  "audio_base64": "T2dnUwACAAAAAAAAAAAAAAAAAAAAAGS5xGoBE09wdXNIZWFkAQE4AUAfAAAAAABPZ2dTAAAAAAAAAAAAAAAAAAABAAAASZW+VAEuT3B1c1RhZ3MGAAAAZmZtcGV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/p96gtoIJD+n/QtG54nL0ypatfD+BQrdQP1/zf5NoAzvPddBM5BQx7GOz2ZDwLNQykEKAYiVlcWcCSVJ0mMnwp41G7BNQlrwKiXNL9gBjtQ9qITXm1AIwWd3sgrRChajT1Ko8eK65x1oagcLJgGMsl5nXcRHYRuny6XKfx/gs5TxZw4/3rHPCB4UX+RL+/FreRrNwvyC0ALZ/+vl8dN4yAGAKeLMOM2AvXBba9ENIYAp4sw4zYC9cFtr0Q0hgCnizDjNgL1wW2vRDSGAKeLMOM2AvXBba9ENIYYp4sw41Dn1iixixG384W/b3c24DOaicEzMyjyjvzwOAaaq/9SPu9cK0QT2dnUwAEuDMCAAAAAAAAAAAABAAAAHkTGcsRKB4zDw4ODhwwICEqDg4ODg4Y7DmIFL3jXBYqbgwpOTn6cNSsICa5Lx3JXNQtVF+NytenQV4EchngGO1CN80nI8bGlOLZKC1hHIpqTy3SO45U/u5KnhwNGOxug8vCM0CNEjULAgrV84ALwYl6CBLW0mzERq21jlGWgX05q+o8MN2YXfjbqqGvk54HGAgjgayA8fvyrLVuf7vxGAKeLMOM2AvXBba9ENIYAp4sw4zYC9cFtr0Q0hgCnizDjNgL1wW2vRDSGCKeLMOM2AvXBpA703PGDUD8rrPtALNR8wXxeBjqIF5m5cfUjXUEWeqphmyvRGvtRs3JZ6mDbyW5WbptVKkwDIq7ATRysvYavRBOgBjtQ9qITXm1AOyAe66fD3IKz8Blcz8a8bptggfcAjiAGO07kaZmXj9seFfmSgoUkPeXj+1XIOJzI4Ay2BATcK5wGICYg4b2kD7vgYJwnVN8MVk8xV/3VY/2ZKPpb3roprbrlalfSfm7a05AGAKeLMOM2AvXBba9ENIYAp4sw4zYC9cFtr0Q0hgCnizDjNgL1wW2vRDSGAKeLMOM2AvXBba9ENIYAp4sw4zYC9cFtr0Q0g=="
}

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 โ†’