Audio to Text
Operator: Abdulla Al Fahad. How tools are built and checked
Paid transcription services charge by the minute and ask you to upload the recording first. This page runs OpenAI's Whisper speech model inside your browser instead. You drop in an interview, a lecture, a voice memo or a video, pick a model size, and the text arrives window by window with timestamps, ready to save as a plain transcript, an SRT subtitle file or a WebVTT file.
Only the model is downloaded. The recording is decoded by your browser, resampled to 16 kHz mono and handed to a background worker, so the page stays responsive. The model files are cached by the browser after the first run, which makes the second transcription start almost immediately.
Key features
- Whisper Tiny, Base and Small, with English-only Tiny and Base, running in a Web Worker so the page keeps scrolling while it works
- Automatic language detection, or a choice of 38 spoken languages, plus an optional translate-to-English mode for the multilingual models
- Download progress for the model, then window-by-window progress with an estimate of the time left
- Segments appear in the list as each window finishes, so a long file can be read while it is still being processed
- Cancel at any point; text that was already produced stays on the page
- Output as TXT (paragraphs split at pauses of two seconds or more, optional [m:ss] stamps), SRT or VTT, and a copy button
- Optional WebGPU acceleration where the browser exposes it, with an automatic fall-back to the CPU path
Models, windows and what the timestamps mean
Input is anything your browser can decode as audio, plus video files whose soundtrack it can decode: MP3, WAV, M4A and AAC, FLAC, Ogg Vorbis and Opus, WebM, and MP4 or MOV with an AAC track. WMA, AMR and AC-3 do not decode in browsers and the page names the codec it found when that happens. Audio files can be up to 1 GB and video files up to 1.5 GB, and the recording can be up to two hours long. At 16 kHz mono the decoded two hours take about 460 MB of memory, which is the reason for the cap.
Whisper reads audio in windows of at most 30 seconds. The page cuts the recording into such windows itself and looks for the quietest 100 ms in the last six seconds of each window, so a cut is more likely to fall in a pause than in the middle of a word. A window whose level is below -58 dBFS is treated as silence and skipped, which stops the model from inventing text over dead air. A window that produces only a stock phrase such as "Thank you." or "[Music]" at a very low level is dropped for the same reason, and a line repeated four or more times in a row, a loop Whisper sometimes falls into on noise, is cut back to a single copy.
Five models are offered, all ONNX conversions published by Xenova on Hugging Face under the Apache-2.0 licence on their model cards (the original OpenAI Whisper weights are MIT-licensed). On the default CPU path the browser downloads the 8-bit encoder and decoder: about 44 MB for Tiny, 80 MB for Base and 252 MB for Small. The English-only Tiny and Base models are the same size as their multilingual siblings. The optional WebGPU path downloads a 32-bit encoder and a 4-bit decoder instead, which is larger (about 123, 209 and 589 MB) but runs on the graphics card.
Segments come back with start and end times from Whisper itself. SRT and VTT cues are capped at about 84 characters: a longer segment is split at sentence ends or word boundaries, and the times inside it are shared out in proportion to character count, so those inner times are an estimate rather than a measurement. Languages without spaces, such as Chinese and Japanese, are split every 36 characters.
How it works
The file is read into memory and decoded with an OfflineAudioContext created at 16,000 Hz, which makes the browser resample while decoding. Stereo is averaged to mono. The samples are then transferred, not copied, to a module Web Worker that loads Transformers.js and builds an automatic-speech-recognition pipeline for the chosen model.
The worker takes each planned window in turn, computes its log-Mel spectrogram, runs the Whisper encoder and then decodes tokens with timestamps enabled. Whisper writes a timestamp token about every 20 ms of audio, and the page turns those into segments by adding the window's start time. The page posts the segments back after each window, which is what drives the progress bar and the live list.
Cancel terminates the worker, which frees its memory at once. Because the model files sit in the browser cache, starting again skips the download and only pays the few seconds it takes to build the inference session.
Common use cases
- Turning a recorded lecture or team meeting into searchable text without sending the recording to a transcription company
- Making an SRT file for a video you already edited, to upload as captions to a video platform
- Pulling quotes out of a journalist's interview, with timestamps to check each quote against the audio
- Transcribing a voice memo in Spanish, Hindi or Portuguese, or getting an English version of it with the translate option
- Getting a first-draft transcript of a podcast episode to use as show notes
How to use this tool
- Choose or drop an audio or video file. The page reads its length and, for video, checks that it has an audio track.
- Pick a model. Base is a sensible start; use an English-only model for English recordings, or Small when accuracy matters more than time.
- For the multilingual models, leave the language on automatic or choose the spoken one, and tick Translate into English if you want English text.
- Press Transcribe. The first run shows the model download, then the transcription progress. Cancel stops it.
- Read the segments as they appear, then download TXT, SRT or VTT, or copy the text.
Example
A 95-minute lecture recording (MP3, 44.1 kHz stereo), Base English-only model, CPU path
lecture-week3.mp3, 71 MB
Decoded to 16 kHz mono: 5,700 s, 91 million samples, about 365 MB in memory
Planned into 193 windows, each 24 to 30 s, cut at pauses
Model: Xenova/whisper-base.en, 8-bit, about 80 MB downloaded oncelecture-week3-transcript.srt (excerpt)
1
00:00:02,000 --> 00:00:06,400
Okay, let's get started. Last week we ended on binary search trees.
2
00:00:06,400 --> 00:00:11,000
Today I want to look at why the shape of the tree matters so much.
(A segment longer than 84 characters would be split into two cues, with the boundary time estimated from text length.)Tips for best results
- Match the model to the job: Tiny for a quick look, Base for most clear speech, Small when there are accents or background noise. Each step up is slower on a CPU.
- Set the language when you know it. Automatic detection runs on every 30-second window, and a window of music or a few foreign words can be misjudged and produce text in the wrong language.
- Try the WebGPU option on a desktop with a recent Chrome or Edge. It can be several times faster than the CPU path, at the price of a larger first download.
- Keep the tab in view during long jobs. Browsers slow down background tabs, which stretches the time a long recording takes.
- For two-hour recordings, run Base or Tiny first to get a draft, then rerun only the part that matters with Small by cutting that part out in the Audio Cutter.
Edge cases to watch
Speed. The CPU path uses a single thread, because multi-threaded WebAssembly needs cross-origin isolation headers this site does not set. Expect a transcription to take about as long as the recording or longer on a laptop, with Tiny and Base at the quick end and Small well beyond it.
Accuracy. Whisper does not separate speakers, so there are no speaker labels, and overlapping voices, heavy accents, jargon, names and numbers are where its errors cluster. Read the output before quoting or publishing it.
Hallucination. On silence, music and noise, Whisper can generate fluent text that was never spoken. The page removes the known cases (very quiet windows, stock phrases and loops), but not every invented line, so skim sections that sound odd against the audio.
Word-level timing is not offered. Segment times come from Whisper's timestamp tokens, so they are good to about a second rather than to the frame; for broadcast-grade captions adjust them in a subtitle editor.
The first run needs a network connection to fetch the model from Hugging Face; the WebAssembly runtime comes from this site. After that the model is cached by the browser, and clearing site data removes it.
Why Whisper in the browser
Speech models used to be too large to run on a page. Whisper's smaller sizes, converted to ONNX and quantised to 8 bits, are small enough: Tiny has about 39 million parameters and Base about 74 million. Running them in WebAssembly, with an optional WebGPU path, means a transcript costs your own CPU time and no service fee, and the recording stays on your machine.
The trade-off is speed and size. A cloud service runs a much larger model on a data-centre GPU, so it will usually be more accurate and finish sooner than Base on a laptop. This page is the right fit when the content is private, when you transcribe often enough that per-minute fees add up, or when you want an SRT without making an account.
What leaves the tab
The audio, the samples and the transcript stay in the page and its worker. The network requests are the model files from huggingface.co and the site's own code, including the speech runtime. None of them carries your recording or your text.
Frequently asked questions
How long will a transcription take?
On a laptop CPU it is commonly about the length of the recording with Tiny or Base, and more with Small. The progress bar shows the time left after the first window, and the WebGPU option can shorten it where it works.
Can it tell speakers apart?
No. Whisper produces text and timestamps but no speaker labels, so a two-person interview comes out as a single stream of segments. Add the names yourself, using the timestamps to find the changes.
Why is the first run slow to start?
The browser has to download the model, about 44 MB for Tiny, 80 MB for Base and 252 MB for Small on the CPU path, plus a small speech runtime. It is cached afterwards, so later runs start in a few seconds.