Zum Inhalt
HALOWERK

Medienwerk

speaker rename

Takes a transcript, SRT or WebVTT text and a mapping from labels to names, e.g. {"Speaker 1": "Anna Weber", "S2": "Interviewer"}, and replaces each label where it marks a speaker: at the start of a line before a colon, and inside WebVTT voice tags <v Speaker 1>. Words inside sentences that merely look like a label are not touched. The answer counts replacements per label and lists speaker labels found in the text that have no name in the mapping. Pure text processing on this machine. Fixed.

POST https://medien.halowerk.com/v1/speaker-rename

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
textstringJa
namesobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "text",
    "names"
  ],
  "additionalProperties": false,
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000000
    },
    "names": {
      "type": "object",
      "minProperties": 1,
      "maxProperties": 30,
      "additionalProperties": {
        "type": "string",
        "minLength": 1,
        "maxLength": 80
      }
    }
  }
}

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 →