Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:0xsline OpenChatCut Transcript Integration

From Leeroopedia
Knowledge Sources
Domains Transcription, Editing, Captioning
Last Updated 2026-10-22 14:00 GMT

Overview

Integration principle that delivers normalized transcript results (word-level timestamps, speaker utterances) to the editing UI as structured HTTP JSON, enabling transcript-driven editing and caption/subtitle generation.

Description

Transcript Integration is the final stage of the transcription pipeline. After audio extraction and speech-to-text, the normalized `NormalizedTranscriptResult` is returned to the caller as an HTTP JSON response.

The integration delivers:

  • Full text: The complete transcript as a single string, with proper punctuation spacing.
  • Word-level timestamps: Each word carries `{ text, start (ms), end (ms, speaker }` enabling precise, word-level editing.
  • Speaker utterances: Words grouped by speaker — consecutive words with the same speaker form an utterance with `{ speaker, text, start, end, words }`.

This data structure enables:

  • Transcript-driven editing: The editor UI can display the transcript and let users select/edit text ranges that map to timeline frames.
  • Caption generation: Word-level timestamps allow generating WebVTT/SRT subtitles.
  • Speaker-aware editing: Utterance grouping enables per-speaker cut/trim operations.
  • Search and navigation: The full text enables transcript search with jump-to-position.

Usage

Use this principle when:

  • Delivering transcription results to an editing UI.
  • Enabling transcript-driven video editing (text-based editing).
  • Generating captions or subtitles from transcripts.

Theoretical Basis

The integration pattern:

# Abstract algorithm (NOT real implementation)
def integrate_transcript(transcript_result):
    return {
        'text': transcript_result.text,
        'words': [
            {'text': w.text, 'start': w.start, 'end': w.end, 'speaker': w.speaker}
            for w in transcript_result.words
        ],
        'utterances': [
            {'speaker': u.speaker, 'text': u.text,
             'start': u.start, 'end': u.end, 'words': u.words}
            for u in transcript_result.utterances
        ],
    }

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment