Skip to content

Add Auto Subtitles, an on-device English subtitle tool - #5

Merged
raevor merged 5 commits into
mainfrom
auto-subtitles
Oct 26, 2026
Merged

raevor merged 5 commits into
mainfrom
auto-subtitles

Conversation

@raevor

@raevor raevor commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a fourth tool, Auto Subtitles (/lab/auto-subtitles): spoken English becomes word-timed subtitle lines inside the browser. The user can subtitle the whole source or a chosen start-to-end part, correct every line and export SRT (Premiere Pro, DaVinci Resolve, Final Cut Pro), an After Effects script, WebVTT or a one-line-per-row transcript.

  • Local by design: the soundtrack is decoded in the tab and only reaches a dedicated worker. The English Whisper base model (onnx-community/whisper-base.en_timestamped, pinned revision) is downloaded once from Hugging Face and cached; it runs on WebGPU or WebAssembly through Transformers.js. No media is sent anywhere.
  • No invented lines: Whisper makes up text over music. A logits probe reads the model's no-speech probability and token confidence; unsure windows, loops, repeats and false starts are dropped. Thresholds were calibrated on the Tears of Steel open movie (CC BY): 12 minutes give about 95 clean lines in about 90 seconds on a GPU, and the same file always gives the same subtitles.
  • Word timing: each line starts on its first spoken word, splits at pauses and stays up for its reading time.
  • Site: the tool appears on the home page, the tool desk, the roadmap and the 404 scene; Alin is its illustrated speaker; the home hero timeline gets a Subs lane.
  • Fixes: background marks no longer stutter while scrolling; the Music & Bass Markers file error is no longer shown in capitals.

Testing

  • 160 unit tests (npm test), typecheck, lint and a production build pass.
  • Manual: full film and partial ranges on GPU and CPU, cancel, a silent file, a non-media file, video and audio inputs, every export, light and dark themes, 375 px to 1600 px widths.
  • TestSprite plan updated to 72 tests: the nine tests that counted three tools now expect four, and seven new tests cover Auto Subtitles (empty state, step bar, 0 B indicator, language and output facts, navigation). The transcription flow is not run in the cloud because it first downloads an 80 to 210 MB model.

Whisper base.en runs in a worker through Transformers.js (WebGPU or WASM);
only the model comes from Hugging Face, the media never leaves the tab.
Word timing, hallucination guards calibrated on real footage, an optional
start/end range, editable lines and SRT, After Effects, WebVTT and
transcript exports. The tool appears on the home page, tool desk,
roadmap and 404 page, with Alin as its illustrated speaker.
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cutweave-lab Ready Ready Preview Oct 26, 2026 12:04pm UTC

@testsprite

testsprite Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Tip

Passed All checks passed — 72 of 72 tests green

This frontend run is extremely strong: all 77 tested user flows passed, with no failures and no blocked tests. The suite exercised navigation, the home page, privacy page, tool library, roadmap, 404 handling, theme persistence, and all four shipped tools, including source-empty states and local media workflows. Because there were no blocked tests, the score reflects the full executable suite rather than a partial subset. Overall, the app appears stable, coherent, and consistent across the primary user journeys the suite covers, with no visible regressions in core navigation or tool access.

Results: Passed 72 passed • 72 total  ·  View Full Report ↗


Passed 72 passed tests
Test Case Status Screenshot
Privacy page shows no identity lookups and no account Passed Passed Privacy page shows no identity lookups and no account
View exactly four tools in the library Passed Passed View exactly four tools in the library
Auto Subtitles explains language and output Passed Passed Auto Subtitles explains language and output
Bass Markers lists accepted formats and links to privacy Passed Passed Bass Markers lists accepted formats and links to privacy
Confirm Bass Markers cannot run without a source Passed Passed Confirm Bass Markers cannot run without a source
Verify home page brand and hero Passed Passed Verify home page brand and hero
Explore all tools from the hero Passed Passed Explore all tools from the hero
Open the privacy page from the header Passed Passed Open the privacy page from the header
Theme toggle names the theme it switches to Passed Passed Theme toggle names the theme it switches to
Start Face Recognition from the hero Passed Passed Start Face Recognition from the hero
Face recognition workspace loads with privacy copy Passed Passed Face recognition workspace loads with privacy copy
Face recognition shows 0 B sent to server Passed Passed Face recognition shows 0 B sent to server
Roadmap lists the four shipped tools Passed Passed —
Bass Markers step bar and zero upload Passed Passed —
Verify the privacy page states local processing and zero media transfer Passed Passed —
Close the tools menu with Escape Passed Passed —
Auto Subtitles cannot transcribe without a source Passed Passed —
Open the tool desk from the tools menu Passed Passed —
Face recognition has no scan action before a source is chosen Passed Passed —
Face recognition five-step bar Passed Passed —
Auto Subtitles opens with an empty source state Passed Passed —
Auto Subtitles step bar and zero upload Passed Passed —
Switch theme and persist after reload Passed Passed —
Unknown route shows custom 404 page Passed Passed —
Verify the privacy page states face recognition does not identify people Passed Passed —
Open tools menu and launch Face Recognition Passed Passed —
Close the tools menu by clicking outside Passed Passed —
Start Face Recognition from the privacy page Passed Passed —
All tools link returns to the tool library Passed Passed —
404 page returns to the home page Passed Passed —
Face recognition empty slot shows no results Passed Passed —
Launch Anime Face Recognition from the tools menu Passed Passed —
View the Bass Markers empty state Passed Passed —
Jump to a section from the page timeline Passed Passed —
Dismiss the anime analysis notice Passed Passed —
Load a local audio file Passed Passed —
Roadmap opens the current tools library Passed Passed —
Unknown top-level route shows custom 404 page Passed Passed —
Verify the anime workspace empty source state Passed Passed —
Library heading and launcher label Passed Passed —
Home featured tools section shows four tools Passed Passed —
Home hero shows the three promise lines Passed Passed —
Open Auto Subtitles from the library Passed Passed —
Anime tool navigation and privacy indicator Passed Passed —
Open local tools from the privacy page Passed Passed —
Open Anime Face Recognition from the library Passed Passed —
Load a local video into Face Recognition Passed Passed —
Open Face Recognition from the library Passed Passed —
Scroll to the workflow section from the home page Passed Passed —
Open the roadmap from the header Passed Passed —
Verify the privacy page separates app downloads from user media Passed Passed —
Launch Music & Bass Markers from the tools menu Passed Passed —
Find markers on the full track Passed Passed —
Home workflow lists the four steps in order Passed Passed —
Library cards describe input and output Passed Passed —
Home facts strip is visible Passed Passed —
Inspect the privacy boundary from the home page Passed Passed —
404 eyebrow text Passed Passed —
Cancel or finish an analysis without an error page Passed Passed —
Home facts strip shows all four facts Passed Passed —
Home footer navigation links Passed Passed —
Library tool desk and privacy link Passed Passed —
Open Music & Bass Markers from the library Passed Passed —
Add a marker at the playhead Passed Passed —
Launch Auto Subtitles from the tools menu Passed Passed —
Auto Subtitles links back to the tools and privacy Passed Passed —
Face recognition privacy link Passed Passed —
Reopen the anime analysis notice from the header Passed Passed —
Continue to the export options Passed Passed —
Keep the anime notice hidden after reload Passed Passed —
Home tool illustrations are labelled as illustrations Passed Passed —
Every home tool card is available and opens its tool Passed Passed —
Evaluation Evaluation details

What could be better What could be better: No concrete defects were surfaced in this run, which is a good sign. The main limitation is coverage depth rather than failures: the suite validated the happy-path UI, privacy copy, and empty-state guards, but it did not expose any broken selectors, incorrect copy, or workflow interruptions to fix. Since everything passed, there are no endpoint-style errors or status codes to cite. If there are still production concerns, they are likely outside the exercised paths or behind scenarios not represented in the current test set.

Next steps Recommended next steps: Keep the current implementation as-is and use this passing run as a baseline. The next useful step is to expand coverage into edge cases and failure states that are not yet represented: unsupported media uploads, corrupted files, interrupted processing, network loss, and accessibility regression checks for keyboard navigation and ARIA labeling. Also consider adding tests around analytics or persistence behavior if those exist. For now, there is nothing to patch from this suite; the app is behaving well across the tested flows. See the fixPrompt panel for the exact titles to reuse when validating future changes.


Automated end-to-end testing powered by TestSprite

@raevor
raevor merged commit 3d2a235 into main Oct 26, 2026
3 checks passed
@raevor
raevor deleted the auto-subtitles branch October 26, 2026 13:11

This branch was successfully deployed

1 active deployment
Preview — 49713384 Deployed Oct 26, 2026 by vercel[bot]
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.

1 participant