Guide

Offline captions with Whisper

Transcribe speech locally in 99 languages—or translate any of them into English—with no account, API key or internet connection once a model is downloaded. Whisper also serves as a one-click offline fallback if a cloud engine stops mid-session (when a cloud engine stops).

Background: local transcription arrived in 1.6.0 (PR #99), proposed by @valentinrabot in issue #98; offline English translation followed in 1.7.0 (PR #121).

New installations open on Whisper with the Base model and automatic language detection selected. Downloading a model and starting capture both wait for your action, and existing setups are kept on upgrade.

On a processor that cannot run Whisper (see processor requirements), Whisper appears in the setup sheet as unavailable with a one-line explanation. Start is disabled for it, and a fresh install falls back to the built-in demo so the app still opens ready to run. Under Live translation, Whisper stays listed as unavailable until you pick a cloud engine, since the demo cannot translate.

Using it

  1. Choose Subtitles, select your microphone, system or application audio source, and pick Whisper.
  2. Pick the spoken language, or leave Detect automatically selected. Naming the language helps with short utterances and avoids repeated language guessing.
  3. Click Download model. You need an internet connection for the download; after that, captioning runs completely offline.
  4. Start captioning. Captions flow to the overlay, transcript, history, recovery copy and exports just like any other engine.
  5. Click Stop when the meeting ends, and let Finishing the transcript complete before exporting so nothing at the end is cut off. The pending counter shows the length of audio still queued, not the wall-clock time left to decode it. Discarding queued audio asks for confirmation and marks the transcript as incomplete.

Subtitles with Local Whisper chosen and the Base model selected but not yet downloaded: the Local transcription check offers Download Base (57 MiB), and the running cost reads Free.

Closing the app while audio is still queued behaves differently from Stop: the close prompt tells you how many seconds remain, waits a few seconds for the backlog, and discards whatever is left so the app can quit. Always click Stop and wait for completion if you need a full transcript.

Model Download Intended choice
Tiny Q5_1 31 MiB Lowest CPU and memory load; try first on older or slower machines
Base Q5_1 (default) 57 MiB Balanced speed and accuracy
Small Q5_1 182 MiB Higher accuracy, with heavier CPU and memory demand; recommended for English translation
Large v3 Turbo Q5_0 547 MiB Highest transcription accuracy; subtitles only; best with a graphics processor

All four are multilingual models rather than English-only .en variants. The selector offers the 99 language tokens they share; listing a language does not guarantee equal accuracy across all 99. The separate Cantonese token introduced in large-v3 is not offered.

Large v3 Turbo trims large-v3’s decoder from 32 layers to 4, delivering accuracy close to large-v3 at a fraction of the decoding cost (the same model Kalamu uses). Because its encoder is still large-v3’s, CPU-only decoding needs a fast machine to keep up with live speech; on a graphics processor it keeps up comfortably. Large v3 Turbo was trained without Whisper’s translate task, so Live translation does not offer it: if Turbo is still selected when you switch to translation, the app prompts you to choose Small and blocks Start until you do.

Models are pinned to Hugging Face ggerganov/whisper.cpp revision 5359861c739e955e79d9a303bcbc70fb988958b1, with exact sizes and SHA-256 digests in src-tauri/src/whisper/models.rs. Downloads run over HTTPS and can be cancelled at any time. There is no overall timeout—so a slow connection can still finish Small or Turbo—but a stalled connection that sends no bytes for 60 seconds fails cleanly. Downloads respect manual proxy settings in Windows Settings → Network & internet → Proxy (including its bypass list) and HTTPS_PROXY/HTTP_PROXY; automatic proxy scripts (PAC/WPAD) are not read. Each download writes to <model>.part in the models folder and moves into place only after size and SHA-256 match. Failed or cancelled downloads delete the partial file, and a new download cleans up any leftover .part file from an interrupted quit. Installed files are verified again before loading, and a model currently in use cannot be deleted or replaced.

When a cloud engine stops: continue with Whisper

Cloud sessions can drop mid-event because of an exhausted quota, a revoked key, a billing error or a network outage. Since #248, a banner under the toolbar lets you switch that source to offline Whisper inside the same session instead of stopping, changing engines and restarting.

  • When it appears. Whenever a cloud provider rejects or ends a source, or after a source has been Reconnecting for 30 seconds. In the second case, reconnection continues alongside the banner; if the cloud comes back first, the banner disappears. Any second active source keeps captioning uninterrupted.
  • What the button does. Continue with offline Whisper restarts that source on Whisper inside the running session, keeping the same clock, transcript, markers, history entry and overlay. When both sources are waiting, one click switches both. A marker (System audio: offline Whisper from here) is added to the transcript so anyone reading the export sees where the engine changed. Not now leaves the source as it is.
  • Which model is used. Your selected Whisper model if it is installed (and supports translation when the room is reading English); otherwise the most accurate installed model that fits, using your graphics-processor preference. Your saved setup stays untouched for the next session.
  • The spoken-language notice. Whisper translates only into English, and Large v3 Turbo cannot translate at all. If the room is reading English and a translating model is installed, the button reads Continue with offline Whisper and confirms English translation continues. Otherwise it reads Continue in the spoken language and explains why underneath (either the target language is not English or only Large v3 Turbo is installed), because the overlay will switch to the speaker’s own language. Screen readers announce that reason with the button.
  • When it is not offered. During a rehearsal or the built-in demo, in two-language sessions, on processors that cannot run Whisper, when no Whisper model is installed (or one is still downloading), or for a source Whisper has already taken over in the same session.
  • When the last source stops. The session stays open while the banner is visible so the clock and history entry stay alive. Choosing Not now or Stop ends the session, recording its history end time at the moment the cloud engine stopped.

After the switch, that source’s audio stays on your computer and costs nothing: the running cost estimate stops billing the failed stream and counts Whisper time as free.

Names and terms

The Names and terms list in setup (step 03, shared with Mistral, Gemini Transcribe and OpenAI subtitles) feeds Whisper’s decoder prompt. The entries, joined with commas, act as preceding context for every window to steer the spelling of names, institutions and jargon. During English translation, it helps Whisper recognise names carried into English.

  • Size limit: whisper.cpp allows up to 223 prompt tokens (half its 448-token text context minus the opening token), enough for a few dozen names. Because whisper.cpp would otherwise keep the end of a longer prompt, the app tokenises the list once at Start and keeps as many entries from the top as fit (whisper/prompt.rs).
  • Per-window handling: tokens are passed via set_tokens rather than set_initial_prompt, avoiding repeated tokenisation and C-string leaks. no_context still drops earlier window text, and whisper.cpp drops the prompt during high-temperature fallbacks.
  • Prompt echoes: over indistinct noise, Whisper can repeat its prompt back as a caption. Any segment consisting solely of two or more listed terms in list order is dropped, while a term spoken naturally is kept. Speech detection prevents most noise from reaching the model in the first place.

local_whisper_smoke verifies the prompt with the real tokeniser (including truncating a 100-entry list) and confirms that 25 seconds of silence or faint noise produce no captions, and that pause-heavy speech reads as what was said rather than the prompt terms. Because speech detection keeps everything from a window’s first words to its last, pauses included, it never hands Whisper a near-empty window dominated by the prompt.

Translation into English

Whisper’s models have a second task besides transcription: translating what is said, in any of their 99 languages, into English. The app offers it as Local Whisper under Live translation (“Offline · into English only”), the one translation engine that needs no account, API key or internet connection once a model is downloaded. It is a separate provider, whisper-translate, for the same reason as the two Gemini engines: it serves the other mode. It runs exactly the pipeline described here — the same models and download, processor check, buffering, segmentation, pause, Stop drain, pending-audio discard and close prompt — and differs only in the task whisper.cpp is given (translate).

  1. Choose Live translation, the audio source and Local Whisper.
  2. Keep English as the caption language. Whisper translates into English only: any other caption language is refused with the message every engine gives for a language it cannot write, and Start waits until English is chosen. There is no second caption language, and the F2 swap has nothing to swap to; a second language saved for a cloud engine is kept for it but not used.
  3. Choose the spoken language, or leave Detect automatically. It is the language Whisper translates from, and works as for subtitles: a window of 3 seconds or more detects its own language, a shorter one reuses the last detection, and a chosen language is always used. English speech comes out as English.
  4. Choose Small and download it. Translation is where the smaller models fall short: Tiny and Base often mistranslate, and the setup sheet says so. Small needs the processor speed discussed under processor requirements to keep up.

The task returns only English, with no transcription of what was said, so captions carry no source text. The overlay and the operator’s stage show the English alone, with no original-speech line even when that option is on, and a saved transcript has no original to include, so the bilingual export option is not offered. Rehearse plays the French recording, as it does for any English translation target.

Limits worth knowing before an event:

  • English only. It does nothing for an audience that reads another language.
  • Quality follows the model. The smoke test below translates the French rehearsal recording with Tiny into recognisable but poor English (“This is a recording of repetition for the subject system to direct…”). Use Small for an audience, and test it on the room’s own speech first.
  • Captions per window, not word by word. As with subtitles, each window of up to roughly 10 seconds is captioned when it is finished.
  • Window boundaries. The second of overlap between windows is trimmed by comparing the English. A translation of that second can be worded differently in each window, so an occasional repeated phrase at a boundary is more likely than in transcription.

Speech detection

Before a window is decoded, Silero’s voice-activity model (v5.1.2, MIT, 864 KiB) looks for speech in it (whisper/vad.rs, from #187). A window with none is not decoded at all: no processor time is spent on a quiet room, a paused call or music, and Whisper gets no chance to invent text over it. A window with speech is decoded from 0.2 s before its first words to 0.2 s after its last, and its captions keep their real times.

  • Bundled, not downloaded. The model ships with the app under resources/models/, so it works for an operator who downloaded a Whisper model before this version and is offline at the event. Its size is checked when a session starts; if it is missing or will not load, the session logs it and decodes every window, as before.
  • Not whisper.cpp’s own switch. whisper.cpp applies its vad parameter only in whisper_full, while whisper-rs calls whisper_full_with_state, where it does nothing. The app runs whisper-rs’s standalone WhisperVadContext instead, one per session, on the processor, whatever decodes the windows.
  • Never at the cost of words. If detection fails on a window, the whole window is decoded. The conservative silence gate in the segmenter still runs first and still drives window endings.
  • Cost. About 80 ms of processor time for 20 s of speech in a release build, under 1% of real time.

Loops and credits

Over noise, music or silence, Whisper is known to loop and to write the subtitle credits it learnt from its training data. Each caption is cleaned before it is shown (reconcile.rs, ported from Kalamu):

  • a word said six or more times running, or a group of up to eight words four or more times, is kept once (“merci merci merci merci merci merci” becomes “merci”); words repeated a few times, as people do (“non, non, non”), are kept;
  • credits such as Sous-titres réalisés par la communauté d’Amara.org or Subtitles by… are dropped;
  • the same line a third time in a row is dropped: people repeat themselves, but rarely three windows running.

Decoder thresholds

whisper.cpp’s whole-pass thresholds stay at its defaults (entropy_thold 2.4, logprob_thold -1.0); reconcile.rs applies the no-speech and log-probability pair to each segment instead. OpenWhispr raised the entropy threshold to 2.8 and lowered the log-probability one to -1.25 for dictation, which cut invented closing lines from 2.25% to 0.06% of 4,814 dictations, but kept the defaults for meetings: the higher entropy threshold sends more windows into whisper.cpp’s temperature fallback, which decodes a window up to six times, and a continuous stream cannot afford that. Live captions are that continuous stream, and speech detection, the per-segment pair and the loop and credit filters already remove the lines those thresholds target.

Graphics processor

Use the graphics processor, under the model, is on by default. Where it finds nothing usable, or fails, Whisper runs on the processor exactly as before. Under the switch, the setup says where the latest session decoded (Latest session: graphics processor (NVIDIA GeForce RTX 4060)), and, when the graphics processor could not be used, what it reported; during a session, that report is also on the stage. Each source sends it on whisper-engine as it starts, and again if the graphics processor fails mid-session. The log names the device too (Whisper model loaded device=…).

  • macOS: Metal, in the app. Every Apple silicon Mac has a graphics processor, and whisper.cpp runs on it with Metal, its shaders built into the app, as in Kalamu. build.rs links clang’s runtime library, which Metal’s version checks need.
  • Windows: Vulkan, in a helper program. whisper.cpp’s Vulkan backend calls the Vulkan loader (vulkan-1.dll, installed by graphics drivers) directly: an app linking it would not start on a PC without one, and would initialise Vulkan even to run on the processor. So Vulkan lives in whisper-vulkan.exe (src-tauri/whisper-vulkan/), installed beside the app. A session starts it, sends it the model to load and each window to decode over standard input and output, and stops it when it ends. The decoding parameters and the messages are one file, whisper-vulkan/src/engine.rs, compiled into both, so a window is decoded the same way wherever it runs.
  • Which device. The helper takes the rules Kalamu measured for its OCR models: a graphics card (NVIDIA, AMD Radeon RX or Pro, Intel Arc A or B) before integrated graphics, Microsoft’s Direct3D 12 layer last; never a software renderer, a device under 2 GiB, or Snapdragon’s Adreno, where Vulkan computed wrong answers that end normally, so no fallback would catch them. Snapdragon PCs therefore stay on the processor.
  • When it fails. A helper that cannot start (no Vulkan loader), finds no usable device or cannot load the model leaves the session on the processor from the start. One that fails or stops answering later (out of graphics memory, a driver fault; a minute without an answer, counted from the start of the window’s write, so a helper that stops reading its input is caught too) is stopped, and the session continues on the processor from that window, which it decodes again there. Its crash never takes the app with it. Discarding the backlog stops it at once, even mid-write.
  • Why it failed. The app sees only an exit code when the helper dies, so it keeps the last 40 lines the helper wrote to standard error and picks the one that says why (gpu.rs::cause, after OpenWhispr’s reading of the same libraries’ output): an exception whisper.cpp caught while loading (vk::…: ErrorOutOfDeviceMemory), ggml-vulkan’s own check before it exits (ggml_vulkan: error ErrorDeviceLost at …), then any line with an error word, skipping the warnings the backends recover from (a buffer in ordinary instead of pinned memory, the Vulkan loader skipping a driver), then an assertion, then whisper.cpp’s bare “failed to load model”. A helper that could not start at all is named by its Windows status: STATUS_DLL_NOT_FOUND is a PC without the Vulkan loader. At most 300 characters reach the interface, untranslated, under its own sentence.
  • It ends with the app. The helper ends when its input closes, so also whenever the app exits, however it exits, but not while it is stuck in a hung driver call. On Windows it is therefore put in a job object that ends it when the app’s handle to the job closes, which Windows does at exit, so a hung helper cannot be left holding the graphics processor.
  • Integrity. The helper reads the model through Rust’s filesystem API and checks its size and SHA-256 again before whisper.cpp sees it, as the app does.
  • Speed is not measured yet. GitHub’s runners have no graphics processor. Before an event, try the room’s own speech on the event’s computer, with the switch on and off.

Audio handling and limits

Capture produces about 100 ms of 16 kHz mono PCM16 per frame. A bounded queue gives the disk writer 30 seconds of scheduling slack. The inference worker reads an anonymous local temporary file rather than the cloud clients’ low-latency queues, so delayed recognition does not trigger their stale-audio discard. Buffering is limited to 2 GiB per source (roughly 18 hours of audio without the reader catching up and resetting the file); disk-full, I/O failure and writer overflow stop the source and report that its transcript may be incomplete. Memory does not grow with the audio backlog.

Recognition uses windows of up to roughly 10 seconds, one second of overlap and conservative silence endpointing. It produces finalised captions rather than speculative word-by-word interim captions. A final short window is padded for inference and its timestamps are clamped to the actual audio duration. Pauses keep the meeting’s elapsed time, and each window’s time is taken from the capture timestamp of the audio it starts in rather than counted in samples, so a capture clock running slightly fast or slow cannot drift caption times over a long meeting.

When the backlog exceeds 30 seconds, windows grow to about 28 seconds until it has cleared. Whisper encodes 30 seconds of audio however short the window is, so long windows clear a backlog with roughly a third of the encoder passes; timestamps are unaffected.

Text repeated across the second of overlap is removed only where the timestamps actually overlap; later repetitions are kept. It is compared word by word, ignoring case and punctuation (“there” does not match “here”); Chinese, Japanese, Thai and other scripts written without spaces are compared by character. whisper.cpp already drops a window it judges silent; the app additionally drops a segment only when the window’s no-speech probability is above 0.6 and the segment’s mean token log-probability is below −1 (whisper.cpp’s own thresholds, applied per segment), which removes the “Thank you.” Whisper invents over room noise without dropping confident speech. Text that is not valid UTF-8 loses only the broken character. Accuracy at window boundaries, with background noise and with code-switching still needs testing in real meetings. Whisper can misrecognise speech or hallucinate text.

With Detect automatically, every window of 3 seconds or more detects its own language, so a French/English room is followed as speakers alternate. A shorter window — a quick reply, a name, the last words before a pause — reuses the language detected on the last longer window that produced captions, because a second or two of audio is where detection is least reliable and most likely to turn a phrase into the other language. A chosen spoken language is always used as chosen.

Pause stops new audio from reaching transcription or its temporary file; the backlog already there is still processed. When no new audio has arrived for a second — after Pause, or when system audio goes quiet because nothing is playing — the audio already held is transcribed straight away instead of waiting for more. Normal Stop drains input and the final partial window without the cloud pipeline’s five-second limit. An explicit discard token interrupts inference. Temporary audio is delete-on-close and cannot be recovered after the process exits; see privacy.

Inference uses about half the logical processors on x64 (one thread per core, assuming simultaneous multithreading) and all but one core on ARM64, at most eight threads either way. With Both sources, the two sources take turns rather than running inference at the same time, so they do not compete for the same cores with capture and the interface.

Building

whisper-rs 0.16.0 vendors whisper.cpp 1.8.3 through whisper-rs-sys 0.15.0, both pinned exactly in Cargo.toml. The CPU backend is statically linked, with Metal added on macOS. No Python, CUDA or Whisper model is bundled in the installer; the speech-detection model and, on Windows, the Vulkan helper are. Model loading uses Rust’s filesystem API so non-ASCII Windows usernames work.

Install LLVM/Clang with libclang, CMake and Ninja alongside the normal Rust/Tauri Windows prerequisites. Run in a Visual Studio Developer PowerShell for the target architecture:

$env:CC = 'clang-cl'
$env:CXX = 'clang-cl'
$env:CXXFLAGS = '/EHsc'
$env:CMAKE_GENERATOR = 'Ninja'
$env:LIBCLANG_PATH = 'C:\Program Files\LLVM\bin'
npm ci
npm run tauri dev

npm run tauri dev and an ordinary build run Whisper on the processor: the Vulkan helper is a separate package in the same Cargo workspace (src-tauri/whisper-vulkan), built only for a release, where tauri.vulkan.conf.json declares it as a sidecar. To build it, install LunarG’s Vulkan SDK (it sets VULKAN_SDK), then:

node scripts/build-whisper-vulkan.mjs x86_64-pc-windows-msvc   # or aarch64-pc-windows-msvc
npm run tauri build -- --config src-tauri/tauri.vulkan.conf.json

The script builds in \wv at the root of the drive (the runner’s temporary folder on CI; WHISPER_VULKAN_TARGET_DIR chooses another): under src-tauri\target, the folders ggml makes for its Vulkan shader generator exceed Windows’ 260-character path limit and the build fails.

To try it from a development build, copy src-tauri/binaries/whisper-vulkan-<target>.exe beside the app’s executable as whisper-vulkan.exe. On Linux, cargo build -p whisper-vulkan needs the distribution’s Vulkan headers and glslc.

The native Windows ARM64 backend requires Clang; plain MSVC cannot compile this version of GGML’s ARM CPU code. CI and release packaging use native Windows x64 and ARM64 runners with the same compiler setup. Real-time throughput is not guaranteed; Both sources runs two inference states and increases memory use.

Processor requirements

.cargo/config.toml builds GGML’s CPU code for a fixed instruction-set level rather than the build machine’s, because GGML’s quantised maths has no fast path below it and Small would not keep up with speech:

Architecture Built for Checked at runtime
x64 AVX2, FMA, F16C, SSE4.2 — clang-cl’s /arch:AVX2, which also allows BMI1, BMI2, LZCNT, MOVBE and POPCNT All of those (Intel Haswell, AMD Excavator/Zen and later, including Alder Lake-N)
ARM64 armv8.2-a+dotprod+fp16 Dot-product (Snapdragon 850 and later); Windows reports FP16 only on recent builds, and every SoC with dot-product has it

src-tauri/src/whisper/cpu.rs checks this before any whisper.cpp code runs — model load, context creation, the smoke test — because GGML code built for AVX2 stops the whole app with an illegal instruction on an older processor. Such a PC is refused with a translated explanation, and the setup sheet learns it before Start through whisper_cpu_support. The other engines are unaffected. CI proves the x64 side by running the test binary under Intel SDE emulating Goldmont Plus (the pre-AVX core in budget Celeron and Pentium Silver laptops): the binary starts without executing AVX code and the gate reports the processor unsupported.

The whisper-rs-sys build script does not watch these variables. After changing them, run cargo clean -p whisper-rs-sys and bump the Rust cache prefix-key in the workflows, or the old native libraries are reused.

Whisper.cpp and the OpenAI model weights use the MIT licence; whisper-rs uses the Unlicense. Their notices are included under resources/licenses and bundled with the app.

Validation

CI builds, lints and tests the application on Linux, Windows x64 and Windows ARM64. The opt-in local_whisper_smoke test downloads the pinned Tiny model and runs the production buffering, segmentation and inference path over bundled English (auto-detect) and French (explicit-language) recordings, then translates the French one into English with its language detected. It checks recognisable transcript content, monotonic timestamps and complete EOF draining:

cd src-tauri
cargo test --locked --all-features local_whisper_smoke -- --ignored --nocapture

local_whisper_vulkan_smoke runs the same recordings through the Vulkan helper named by WHISPER_VULKAN_HELPER. CI’s Linux lane runs it on Mesa’s software renderer (lavapipe), which the helper accepts only when a test asks:

cd src-tauri
cargo build -p whisper-vulkan
GGML_VK_VISIBLE_DEVICES=0 WHISPER_VULKAN_HELPER=$PWD/target/debug/whisper-vulkan \
  cargo test --locked --all-features local_whisper_vulkan_smoke -- --ignored --nocapture

The helper’s own tests (cargo test -p whisper-vulkan) cover the messages, broken streams, device choice and the integrity check; the app’s cover speech spans, the bundled model finding the rehearsal’s speech and nothing in silence, loops and credits, Turbo’s refusal to translate, and the graphics switch’s default.

Unit tests cover language vocabulary, corrupt model rejection, active-model protection, writer overflow, pause filtering, final-tail handling, timestamp gaps and producer failure ordering; the processor check; downloads against a loopback HTTP server (verified install, hash mismatch, oversized body, stalled connection, cancellation, partial-file clean-up); the spool’s idle signal and size limit; the segmenter’s gap threshold, jittered and drifting timestamps, long windows and idle flush; segment reconciliation (overlap by word and by character, clamped and monotonic times, broken UTF-8, the no-speech filter); short-window language reuse; thread counts; and the translate task reaching whisper.cpp. Validation tests cover translation’s English-only target and its lack of a second language. UI tests cover persisted multilingual settings, model/progress controls, the unsupported-processor engine card, the close prompt’s pending audio, and translation’s engine card, English-only note and captions without original speech. For PR #99 (4 October 2026) the smoke test passed on ARM64, including non-ASCII model paths, and all seven PR CI jobs passed on run 37196818518.

Before release, test packaged x64 and ARM64 applications on real devices: download/cancel/remove, relaunch offline, microphone and Teams/application loopback, Both sources, pause/resume, long backlogs, Stop/discard, quitting with a backlog, exports, non-Latin speech and clean uninstall; a model download behind a proxy configured in Windows Settings; and an x64 PC without AVX2, where Whisper must be listed as unavailable and the demo selected. CI audio fixtures do not establish microphone permissions, actual conference-call capture quality or battery performance. Package acceptance is tracked in the release handoff.