Skip to content

Add SRT / VTT / JSON transcript export - #29

Closed
wassgha wants to merge 2 commits into
mainfrom
cursor/transcript-export-formats-ca13
Closed

wassgha wants to merge 2 commits into
mainfrom
cursor/transcript-export-formats-ca13

Conversation

@wassgha

@wassgha wassgha commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the ability to export the editor transcript as SRT, WebVTT, or JSON.

  • New lib/serializeTranscript.ts mirrors the existing import parser
  • SRT / VTT omit deleted words and remap timestamps onto the edited timeline (so captions sync with the exported media), with speaker labels
  • JSON writes the full { words: [...] } list (including deleted) for round-trip re-import
  • UI: Export dropdown next to Import in the transcript toolbar, plus format buttons in the media Export dialog
  • Round-trip coverage in scripts/serialize-transcript-test.ts

Test plan

  • npx tsx scripts/serialize-transcript-test.ts
  • npx tsx scripts/parse-transcript-test.ts
  • npm run lint
  • In the editor with a ready transcript, use Export in the transcript toolbar → download SRT / WebVTT / JSON
  • Open the top-bar Export dialog → download transcript formats from the Transcript section
  • Cut some words, export SRT/VTT, confirm deleted words are gone and times match the shortened edit
  • Re-import the JSON export and confirm words/speakers/cuts round-trip
Open in Web Open in Cursor 

Serialize the word-level transcript to caption formats with speaker
labels. SRT/VTT omit cuts and remap times onto the edited timeline;
JSON keeps the full word list for round-trip re-import. Export is
available from the transcript toolbar and the media export dialog.

Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants