Free audio transcription and offline subtitles

Updated · By Best Free AI

For free audio transcription, try the whisper.cpp browser demo with a short recording. For a longer file or subtitles you can edit, run the same speech engine on your computer. One command saves a plain transcript and two timed caption files while keeping the recording on your device.

Try a short recording in your browser

Choose a tiny English model, let it download, select an audio file and start transcription. The demo runs the model in your browser. Its documentation caps audio at 120 seconds. For a longer interview, use the desktop instructions below.

Open the whisper.cpp browser demo

For timed captions without a terminal, SubtitleKit says its browser editor processes your recording on your device. Open it while online to download the model, choose the spoken language, then review the cues and export SRT or WebVTT.

Generate and edit captions in SubtitleKit

Set up offline transcription once

These commands are for a macOS or Linux terminal with Git, CMake, a C++ compiler and curl or wget installed. Download the program and English model while online. Then you can disconnect and process files without an account, an upload or a per-minute fee. Your computer supplies the memory and processing time.

git clone --depth 1 --branch v1.9.6 https://github.com/ggml-org/whisper.cpp.git
cd whisper.cpp
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_METAL=OFF
cmake --build build --config Release --target whisper-cli
sh models/download-ggml-model.sh tiny.en

Turn an MP3 or video into a transcript and subtitles

In the whisper.cpp directory, try the bundled MP3 first. For your own recording, replace samples/jfk.mp3 with the path to your file. Put paths containing spaces in quotes. Choose a new output name for each recording so you keep your earlier work.

./build/bin/whisper-cli -m models/ggml-tiny.en.bin -l en -f samples/jfk.mp3 -ml 42 -sow -otxt -osrt -ovtt -of interview

Open interview.txt to copy the words. Import interview.srt into a subtitle editor or a player that accepts SRT. Use interview.vtt for a web player that accepts WebVTT. These are separate files, so the video picture stays untouched. The 42-character setting asks the model to split on words. It can still split a phrase in an awkward place.

For a video, install FFmpeg and extract the audio you want to transcribe. Without -map, FFmpeg chooses a track automatically. The command below uses -map 0:a:0 to select the first audio track and save a mono, 16 kHz WAV. If the dialogue you want is on the second track, use -map 0:a:1. Play speech.wav to check the language and speaker before using it in place of samples/jfk.mp3.

ffmpeg -i "clip.mp4" -map 0:a:0 -vn -ac 1 -ar 16000 -c:a pcm_s16le speech.wav

The tiny.en model is English-only. For speech in another language, download tiny in the setup step, change the model path to models/ggml-tiny.bin and replace en with the spoken language code. Overlapping voices and unfamiliar names need a human check.

Hear where the first caption should break

We ran whisper.cpp v1.9.6 with tiny.en on its 11-second Kennedy speech sample. The supplied WAV, MP3 and a WAV extracted from a test video produced identical SRT files. The model preserved the words, but its first caption ended halfway through “ask not what your country can do for you.”

And so, my fellow Americans: Ask not what your country can do for you. Ask what you can do for your country.

The first raw cue ran to 5.65 seconds. We used the model’s word timings to move the break to 3.29 seconds, after “Americans,” and checked the wording against the National Archives transcript. Play the clip and compare the two SRT files. The edited example uses sentence punctuation for reading on screen.

Review the captions with the recording

  • Play each cue at normal speed. Split at a pause or the end of a phrase and keep short words with the phrase they introduce.
  • Check names, numbers and words such as “not” against the recording. Add speaker identification when a change would be unclear, and describe meaningful sounds such as an alarm when a listener needs them to follow the scene.
  • Load the caption file alongside the final cut. Check the opening and closing cues and a point after every video edit. If the text drifts, retime the captions against that cut. For YouTube, upload the SRT as a subtitle file with timing and preview it in Studio.

Compare free note takers for live meetings · Compare free tools for making and editing video

Sources

Official references · 7
  1. Browser subtitle editor, model download and export formats · SubtitleKit
  2. whisper.cpp v1.9.6, command-line build and sample audio · ggml-org
  3. Browser demo, on-device processing and audio limit · ggml-org
  4. FFmpeg command-line documentation · FFmpeg
  5. President John F. Kennedy’s inaugural address · National Archives
  6. Captions and subtitles for audio and video · W3C Web Accessibility Initiative
  7. Supported subtitle and closed caption files · YouTube Help