Zum Inhalt
HALOWERK

Audiowerk

convert

Converts to FLAC, WAV at 16 or 24 bit, MP3, Opus or AAC, with sample rate, channel count and quality all settable and all reported back. What separates this from a bare transcode is the verdict on what the conversion actually did. The spectral cut-off of the source is measured first, so a source that already passed through a lossy stage is recognised before it is wrapped in a lossless container: converting an MP3 to FLAC multiplies the file size by roughly ten and restores nothing, and the.

POST https://audio.halowerk.com/convert

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
audioobjectJaThe recording. Either url or content_base64.
target_formatstringJaTarget format. flac, wav and wav24 are lossless containers; mp3, opus and aac are not.
sample_rateintegerNeinTarget sample rate. Left out, the source rate is kept.
channelsintegerNeinTarget channel count. Left out, the source layout is kept. Downmixing to mono is irreversible.
bitrate_kbpsintegerNeinBit rate for the lossy targets. Ignored for flac and wav.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "audio",
    "target_format"
  ],
  "additionalProperties": false,
  "properties": {
    "audio": {
      "type": "object",
      "additionalProperties": false,
      "description": "The recording. Either url or content_base64.",
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 2048,
          "description": "Public http(s) URL."
        },
        "content_base64": {
          "type": "string",
          "maxLength": 12000000,
          "description": "The file inline, base64."
        }
      }
    },
    "target_format": {
      "type": "string",
      "enum": [
        "flac",
        "wav",
        "wav24",
        "mp3",
        "opus",
        "aac"
      ],
      "description": "Target format. flac, wav and wav24 are lossless containers; mp3, opus and aac are not."
    },
    "sample_rate": {
      "type": "integer",
      "enum": [
        8000,
        16000,
        22050,
        24000,
        32000,
        44100,
        48000,
        96000
      ],
      "description": "Target sample rate. Left out, the source rate is kept."
    },
    "channels": {
      "type": "integer",
      "enum": [
        1,
        2
      ],
      "description": "Target channel count. Left out, the source layout is kept. Downmixing to mono is irreversible."
    },
    "bitrate_kbps": {
      "type": "integer",
      "minimum": 32,
      "maximum": 320,
      "description": "Bit rate for the lossy targets. Ignored for flac and wav."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "audio": {},
  "target_format": "flac"
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →