# Method: on-device dictation on a Mac, measured

Run date: 2026-11-28, 18:35 to 18:50 IST (about 15 minutes of compute for all engines).

## Hardware and software

- MacBook Pro 14-inch, Mac16,1, Apple M4 (10 cores: 4 performance, 6 efficiency), 16 GB unified memory.
- macOS 27.2.1 (build 26B131). On AC power, Low Power Mode off.
- The Mac was in normal use during the run (Chrome, Teams, editors and other agents open; load average about 5). The numbers are what a working laptop gives, not an idle lab machine.
- Jot repo at commit `0178c9c0` (Jot 2.3.0).
- transcribe.cpp 0.4.1, prebuilt `@transcribe-cpp/darwin-arm64-metal` (from the repo's `node_modules`, contract header hash `f99ad4169374b8f3`). Backend reported by every model: `MTL0` (Metal GPU).
- `jot-transcribe` (Jot's worker process) built with `cargo build --release -p jot-speech --bin jot-transcribe`, rustc 1.99.1.
- Apple helper: Jot's own `rust/tools/mac/speech.swift`, unchanged, built with `swiftc -O -parse-as-library` (Swift 6.4.2). It uses `SpeechAnalyzer` + `SpeechTranscriber` (preset `.transcription`, locale `en-US`). The en-US asset was already installed on this Mac (asset version 3100.52005.81607, 395 MB on disk).
- Scoring: Python 3.12 venv, jiwer 4.0.0, whisper-normalizer 1.0.1, pyarrow 26.0.1, soundfile 0.14.0, numpy 2.5.5. Audio conversion: ffmpeg 9.0.2.

Nothing touched the installed Jot app or its data. Everything lives in this folder.

## Models

From `rust/crates/jot-speech/src/local_models.json`. Each file was downloaded from
`https://huggingface.co/{id}/resolve/{revision}/{filename}` and its size and SHA-256 matched the JSON (`scripts/fetch_models.py`).

| Model id | Revision | File | Size (bytes) | Why |
|---|---|---|---|---|
| handy-computer/parakeet-unified-en-0.6b-gguf | 7e948f21 | parakeet-unified-en-0.6b-Q8_0.gguf | 731357568 | Jot's recommended English model |
| handy-computer/nemotron-3.5-asr-streaming-0.6b-gguf | 6d44e540 | nemotron-3.5-asr-streaming-0.6b-Q8_0.gguf | 751094240 | Recommended multilingual model (28 languages) |
| handy-computer/whisper-medium-gguf | ec78f06f | whisper-medium-Q8_0.gguf | 831538144 | Recommended, the familiar Whisper (99 languages) |
| handy-computer/parakeet-tdt_ctc-110m-gguf | 9d66d34f | parakeet-tdt_ctc-110m-Q8_0.gguf | 135373280 | Fastest in the list by published speed |
| handy-computer/moonshine-tiny-gguf | f5c11906 | moonshine-tiny-Q8_0.gguf | 35466912 | Smallest English model in the list |

Plus Apple SpeechAnalyzer (system model, en-US).

## Datasets

1. **LibriSpeech test-clean** (Panayotov et al., 2015; OpenSLR SLR12; licence CC BY 4.0).
   Source file: Hugging Face `openslr/librispeech_asr`, revision `71cacbfb7e2354c4226d01e70d77d5fca3d04ba1`,
   `all/test.clean/0000.parquet` (SHA-256 `7113aa4c3cf963fb54697145719a7725f984c8836d1c494a554cbb9f1a017df0`, the full 2,620-utterance split).
   Subset: for each of the 40 speakers, the first 4 utterance IDs in sorted order. **160 utterances, 24.63 minutes, 40 speakers.**
   Read audiobook speech, studio-quality.
2. **EdAcc test** (Edinburgh International Accents of English Corpus, Sanabria et al., 2023, arXiv:2303.18110; licence CC BY-SA 4.0, DataShare DOI 10.7488/ds/7914).
   Source file: Hugging Face `edinburghcstr/edacc`, revision `d9ae7bd344f0562b766ec93ee5ce8f2f9568ce66`,
   `data/test-00000-of-00010-f0aceb1ca4406ff1.parquet` (SHA-256 `1aeffcba6a8a77b7b2c0be70fa7a30fa437f8a5705b02d1d5cab2932d76af767`).
   Subset: in file order, per speaker, the first 8 utterances that last 3 to 30 s and have at least 5 reference words.
   **107 utterances, 18.13 minutes, 16 speakers** (8 conversations). Accent labels: Mainstream US English 22, Scottish English 16, Spanish 16, "Don't know" 16, Eastern European 8, Chinese 8, Catalan 8, Bulgarian 7, Romanian 4, Indian English 2.
   Spontaneous conversation over a video call, verbatim transcripts.

The exact utterance list, durations and references are in `manifest.jsonl` (made by `scripts/prepare.py`).
All audio was converted with ffmpeg to 16 kHz mono 16-bit WAV (EdAcc is 32 kHz). Every engine got the same WAV files.

## How each engine was run

- **transcribe.cpp models**: `scripts/bench.py` starts Jot's `jot-transcribe` worker and speaks its wire protocol
  (`rust/crates/jot-speech/src/local/worker.rs`): one `load` request (`cpu: false`, so Metal), then one `run` per clip with the raw 16 kHz f32 samples.
  The worker does what Jot does: it splits a clip at pauses when the model has a length limit, runs each piece, and cleans the text.
  Language sent: Jot's rule (`model_language` then `native_language`) for an `en-US` user: `en` for all, `en-US` for Nemotron (its own spelling). No custom vocabulary.
- **Apple**: `scripts/bench.py` starts the helper with `--serve`, sends one prepare request (`{"locale":"en-US"}`), then one `{"path":..., "locale":"en-US"}` per clip, and joins the returned segments with spaces.
- Each engine ran in **two separate process launches**. Each launch: load, one warm-up clip (the first utterance, timed as "first clip after load", not counted), then all 267 clips in order. One clip at a time, no batching.

## Metrics

- **WER**: corpus-level (all edits / all reference words), from launch 1, with jiwer 4.0.0 after the **Whisper English text normaliser** (`whisper_normalizer.english.EnglishTextNormalizer`, a copy of openai/whisper's normaliser, the one the Hugging Face Open ASR Leaderboard uses: lowercase, strip punctuation, standardise spellings and numbers, drop fillers like "um"). EdAcc event tags (`<LAUGH>`, `<OVERLAP>`, `<FOREIGN>`, `<DTMF>`, `<NO-SPEECH>`) are removed from references first. `wer_basic_norm` uses only lowercase + punctuation strip + whitespace collapse, for comparison.
- **95% confidence interval**: bootstrap over utterances, 2,000 draws, seed 0 (`scripts/ci.py`).
- **Speed**: `rtf` = total wall time of all runs / total audio time, per launch; the table reports the median of the two launches (with two values the median is their mean). `seconds_per_30s_audio` = 30 x rtf. The time is from writing the request to reading the reply, so it includes the pipe transfer and the worker's chunking. `median_clip_latency_s` is the median time for one clip (the average clip is about 9.6 s).
- **Load time**: process start to "model loaded". Both launches ran with the model file already in the OS file cache (it had just been downloaded and hashed), so this is a warm-cache load. A cold load after a reboot will be slower; this was not measured (it needs `sudo purge`).
- **Memory**: `/usr/bin/time -l` on the worker: "peak memory footprint" and "maximum resident set size". Important: transcribe.cpp memory-maps the GGUF file and Metal reads the weights from that mapping, so the footprint does not include the weights. A fair memory budget is roughly footprint + model file size. For Apple, the model runs in the system's `localspeechrecognition` XPC service, not in the helper; its RSS was sampled every 2 s with `ps` during the Apple run (max 146 MB), which is approximate.
- **Disk**: model file size from `local_models.json`; for Apple, `du` of `/System/Library/AssetsV2/com_apple_MobileAsset_UAF_Speech_AutomaticSpeechRecognition`.
- **Determinism**: transcripts were compared between the two launches (`identical_text_across_launches`). All engines matched on every clip except Whisper Medium (266 of 267).

## Reproduce

```sh
B=<this folder>
REPO=~/Developer/jot
cd $REPO/rust && cargo build --release -p jot-speech --bin jot-transcribe
mkdir -p $B/bin $B/lib $B/models
cp $REPO/rust/target/release/jot-transcribe $B/bin/
cp $REPO/node_modules/@transcribe-cpp/darwin-arm64-metal/*.dylib $B/lib/
swiftc -O -parse-as-library -o $B/bin/jot-speech-bench $REPO/rust/tools/mac/speech.swift
$B/bin/jot-speech-bench --check --locale en-US          # needs "ready": true; else --install en-US
uv venv -p 3.12 $B/.venv && VIRTUAL_ENV=$B/.venv uv pip install pyarrow==26.0.1 jiwer==4.0.0 soundfile numpy whisper-normalizer==1.0.1
python3 -I $B/scripts/fetch_models.py $REPO/rust/crates/jot-speech/src/local_models.json $B/models <model ids...>
# download the two parquet files above into $B/data/librispeech/test.clean.0000.parquet and $B/data/edacc/test-00000.parquet
$B/.venv/bin/python -I $B/scripts/prepare.py $B
for m in moonshine-tiny-gguf parakeet-tdt_ctc-110m-gguf parakeet-unified-en-0.6b-gguf nemotron-3.5-asr-streaming-0.6b-gguf whisper-medium-gguf; do
  $B/.venv/bin/python -I $B/scripts/bench.py $B tcpp handy-computer/$m
done
$B/.venv/bin/python -I $B/scripts/bench.py $B apple
$B/.venv/bin/python -I $B/scripts/score.py $B && $B/.venv/bin/python -I $B/scripts/ci.py $B && $B/.venv/bin/python -I $B/scripts/merge.py $B
```

## Files

- `results.csv`: one row per engine and dataset (`librispeech-test-clean`, `edacc-test`, `all`).
- `per_utterance.csv`: reference, hypothesis, time and WER for every clip (launch 1).
- `wer_ci.csv`: bootstrap intervals.
- `raw/*.json`: every timing and transcript from both launches; `raw/*.stderr`: worker logs and `time -l` output.
- `manifest.jsonl`: the 267 test clips.

## Limits and caveats

- One Mac, one chip. An M1 or a base M2 will be slower; an M4 Pro or Max faster. The ranking is more portable than the absolute numbers.
- 267 clips is enough to separate large gaps (Moonshine Tiny versus the rest) but not small ones. On LibriSpeech, Parakeet Unified (2.07%), Apple (2.12%), Whisper Medium (2.35%) and Parakeet 110M (2.49%) overlap within their 95% intervals.
- EdAcc is one shard: 8 conversations, 16 speakers. Its references are verbatim, with repeats and false starts ("it's the first it's the first I"). Models that write clean text, which is what you want for dictation, lose points for dropping those repeats. Whisper Medium does this most. So the EdAcc numbers overstate real dictation errors, and they punish tidy output.
- EdAcc is conversation, not dictation. People dictating speak more deliberately than people chatting.
- The Mac was in use during the run, which adds noise to the speed numbers; the two launches agreed within 4% for every transcribe.cpp model and within 8% for Apple.
- Load times are warm-cache (see above). The first-ever load of a model after download also compiles Metal shaders; in a smoke test before the run, Moonshine Tiny's very first load took 7.3 s.
- Apple's memory figure is a sampled RSS of a system service, and Apple's model may already be resident for Dictation. It is not directly comparable to the transcribe.cpp numbers.
- No custom vocabulary, no cleanup step, no streaming. Jot can add a cleanup pass after transcription; that is not measured here.
- One odd output: Parakeet Unified wrote "THE THE THRIE MODEDES OF MANAGEMENT" (all caps, garbled) for LibriSpeech 7021-79730-0000, a 2 s clip. Nemotron returned empty text for one EdAcc clip (EDACC-C20-21).
- The numbers published in `local_models.json` (from Handy) use other test data and other hardware, so they are not comparable with these.
