Hakolkal
Start a Project

Article · Published December 3, 2026

Speech-to-text that runs in the visitor's browser, with no server

Almost every transcription feature works the same way: the audio leaves the user's device, a server turns it into text, and somebody pays for each minute. Caption Lab does the whole job inside the browser tab. I built it to find out how far that goes today, and where it stops.

Caption Lab showing the words NOT WHAT YOUR on a video stage, the word NOT highlighted in green, with the full transcript below

What happens when you drop a file

You drop an audio or video file on the page. The browser decodes it and reduces it to a single channel at 16,000 samples per second, which is what the recognizer expects. That audio is handed to Whisper, an open speech model, running in a background thread of the same tab so the page stays responsive.

Every word then comes back with the moment it starts and the moment it ends. The file itself never leaves the device. The only downloads are the model and the code that runs it, fetched from public hosts on the first visit.

What I measured

The fast model is a 41 MB download, the more accurate one 77 MB. On a second visit there is nothing to download. I checked it in a clean browser profile: the first visit fetched 40.8 MB from the model host, the second fetched none, and the captions were on screen 1.7 seconds after the click.

On my laptop the 11-second sample is transcribed in a little over a second once the model is loaded. A phone will take longer. I have not measured one, so I make no claim there.

Captions are a layout problem as much as a speech problem

Word timings are only the raw material. Readable captions show a few words at a time: three for the punchiest style, up to seven for the classic one. The page groups the words into lines, highlights the one being spoken, and lets you click any word of the transcript to jump to it.

Four looks are built in, and they carry the names and colours of the caption styles in Brollwise, my AI video editor. The result exports as a standard .srt file.

Why do it on the device

Privacy is the obvious reason. A recording of a meeting, a patient or a child is not something every client wants to send to a third party. If the audio never leaves, there is nothing to store, nothing to secure and nothing to delete later.

Cost is the second. Server transcription is billed by the minute, for as long as the feature exists. Here the visitor's own device does the work, and the demo is hosted as plain static files: no server of mine runs the recognizer.

Where it stops

The demo captions the first three minutes of a file and refuses files over 300 MB, because the whole file is decoded in memory. The two models it offers are the two smallest of the Whisper family, so you trade some accuracy for a download that fits in a browser.

I would still use a server for an hour-long recording, for a product that must work on old phones, or when every word has to be right. For short clips, private recordings and a feature that must cost nothing per use, the browser is now enough.

Try it

Caption Lab is live at jewgah.github.io/caption-lab, with a sample to try, and the code is public on my GitHub. You can tell it the language is English, French or Hebrew, or leave it to detect the language.

If your product needs transcription, captions or any feature where the data should stay with the user, this is the trade-off I work through before writing code.

Want something like this?

Tell me what you are building, or what you are still doing by hand, and I will tell you how I would approach it. No commitment.