Skip to content
HALOWERK

Tonwerk

transcript compare

Both transcripts (plain text or timed segments) are split into words, normalised per options (NFKC, case folding, punctuation removed) and aligned with a word-level Levenshtein alignment. Consecutive non-matching words form one difference region with the text of A, the text of B, kind (replaced, only_in_a, only_in_b), word positions, times (from segment times, interpolated by character position), surrounding context and flags for numbers and pure formatting differences. Symmetric: no side is.

POST https://ton.halowerk.com/v1/transcript-compare

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
aSee schemaYesTranscript as plain text or as timed segments [{start, end, text}] in seconds.
bSee schemaYesTranscript as plain text or as timed segments [{start, end, text}] in seconds.
ignore_casebooleanNoTreat upper and lower case as equal.
ignore_punctuationbooleanNoIgnore punctuation characters.
context_wordsintegerNoWords of context shown around each difference.
max_differencesintegerNoMost difference regions listed.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "a",
    "b"
  ],
  "properties": {
    "a": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 60000
        },
        {
          "type": "array",
          "minItems": 1,
          "maxItems": 5000,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "start",
              "end",
              "text"
            ],
            "properties": {
              "start": {
                "type": "number",
                "minimum": 0
              },
              "end": {
                "type": "number",
                "minimum": 0
              },
              "text": {
                "type": "string",
                "maxLength": 2000
              }
            }
          }
        }
      ],
      "description": "Transcript as plain text or as timed segments [{start, end, text}] in seconds."
    },
    "b": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 60000
        },
        {
          "type": "array",
          "minItems": 1,
          "maxItems": 5000,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "start",
              "end",
              "text"
            ],
            "properties": {
              "start": {
                "type": "number",
                "minimum": 0
              },
              "end": {
                "type": "number",
                "minimum": 0
              },
              "text": {
                "type": "string",
                "maxLength": 2000
              }
            }
          }
        }
      ],
      "description": "Transcript as plain text or as timed segments [{start, end, text}] in seconds."
    },
    "ignore_case": {
      "type": "boolean",
      "default": true,
      "description": "Treat upper and lower case as equal."
    },
    "ignore_punctuation": {
      "type": "boolean",
      "default": true,
      "description": "Ignore punctuation characters."
    },
    "context_words": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "default": 3,
      "description": "Words of context shown around each difference."
    },
    "max_differences": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 100,
      "description": "Most difference regions listed."
    }
  }
}

Open original schema

Published input example

{
  "a": "The meeting starts at nine tomorrow.",
  "b": "the meeting starts at 9 tomorrow"
}

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