Zum Inhalt
HALOWERK

Medienwerk

silence split

Takes an audio or video file of up to 60 minutes, detects silences longer than min_silence_seconds below threshold_db and cuts the recording into parts at the middle of each silence. Parts shorter than min_part_seconds are merged with their neighbour; at most 50 parts. Returned are the cut list with start, end and duration of every part and, if they fit into 8 MB together, the parts themselves as MP3 inline; otherwise only the cut list, which is stated. Runs locally with ffmpeg; nothing.

POST https://medien.halowerk.com/v1/silence-split

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
sourceobjectJaThe recording. Either url or content_base64.
duration_minutesintegerJaLength in started minutes — this is what you are billed for.
threshold_dbnumberNein
min_silence_secondsnumberNein
min_part_secondsnumberNein
return_audiobooleanNein
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "source",
    "duration_minutes"
  ],
  "additionalProperties": false,
  "properties": {
    "source": {
      "type": "object",
      "additionalProperties": false,
      "description": "The recording. Either url or content_base64.",
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 2048,
          "description": "Public http(s) URL of the file."
        },
        "content_base64": {
          "type": "string",
          "maxLength": 12000000,
          "description": "The file inline, base64. Larger files by url."
        },
        "filename": {
          "type": "string",
          "maxLength": 260
        }
      }
    },
    "duration_minutes": {
      "type": "integer",
      "minimum": 1,
      "maximum": 60,
      "description": "Length in started minutes — this is what you are billed for."
    },
    "threshold_db": {
      "type": "number",
      "minimum": -80,
      "maximum": -10,
      "default": -40
    },
    "min_silence_seconds": {
      "type": "number",
      "minimum": 0.2,
      "maximum": 30,
      "default": 1.5
    },
    "min_part_seconds": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 600,
      "default": 3
    },
    "return_audio": {
      "type": "boolean",
      "default": true
    }
  }
}

Originalschema öffnen

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 →