' for c in calls)
page = f"""
Meeting speakers · diarization spike
Who said what in “Them”: on-device diarization for Hex meetings
Spike t1303 · 2026-11-04 · measurement only, no Hex change · synthetic on M2 Max, real on M4 Pro (both shared with other jobs)
Use NVIDIA Nemotron-3 Diarization, running in transcribe.cpp, plus a separate voiceprint model.
Accuracy. It handles up to 8 speakers. It scored 9.1–9.5% DER on the synthetic calls (pyannote 14.3%) and got the speaker count exactly right on 4 of 5 calls. It finds the same 6–7 speakers as pyannote on the two big real meetings, and gives each speaker 97% of their words.
How it runs in Hex. transcribe.cpp is already linked, and Hex's pinned rev already exposes DiarizeSession. It runs Sortformer v2.1 today at 180× realtime with 11.8% DER, but that model stops at 4 speakers. The remaining work is porting the V3 8-speaker head into that model family. NeMo-Speech.cpp's ggml version, which already runs V3 at 400–640× realtime, is the reference for the port.
Size and voiceprints. The model is 107 MB (q8_0). Voiceprints need a separate embedding model run over each speaker's clean stretches. CAM++ named people across calls correctly 81–94% of the time. It couldn't tell an unknown voice apart at a fixed threshold, though, so Hex should suggest names rather than assign them.
Synthetic calls: scores
5 calls, 2–5 voices made with Qwen3-TTS (VoiceDesign references, Base clones), 3–5% overlap. Each call went through 16 kHz, Opus or AAC at 16–32 kb/s, noise at 20–28 dB SNR and level gaps of up to 9 dB.
DER uses a 0.25 s collar and scores overlap. About 9 points of every DER is a floor: the reference marks short pauses inside a turn as speech.
x-RT is audio seconds per wall second, not counting model load. Voiceprints use one CAM++ extractor over each found speaker's solo stretches of 0.5 s or more, cosine ≥ 0.5.
“Cross-call” enrols each voice from the other calls; “clean ref” enrols from one clean 10 s clip.
System
DER %
Confusion %
Count exact
x-RT
Peak MB
Cross-call
Clean ref
Words right: word / segment
{"".join(rows)}
† PyTorch CPU ran next to an Xcode release build on the same Mac, so its speed is unreliable. Every speed here was measured on a shared worker; compare systems run on the same machine. Call 4 has 5 voices, and every system with an 8-speaker limit still merged two of them (one has 18 s of speech).
Word vs segment: the gap is under 1 point everywhere, because Hex's “Them” lines are short. Giving each line its majority speaker is enough.
Real meetings (system.wav only)
Each cell is speakers found · x-RT on M4 Pro. Hex's transcript doesn't say how many people were on a call, so open a page, play it, and check the colours.
Each page colours every “Them” line by Nemotron-3's speaker, shows the other systems' timelines next to it, and marks lines where a second speaker holds over 30% of the line.
Meeting
Length
{"".join(f"
{n}
" for _, n in REAL)}
{"".join(real_rows)}
m1 and m2: Nemotron-3 hears one remote voice. On m2, Sortformer v2.1 and pyannote both split off a second voice of about 1.5–2.5 min (CAM++ puts it 0.74–0.83 from the main voice), and Nemotron-3 folds it in. Worth a listen.
m3 and m4: Nemotron-3 and pyannote agree on 6–7 speakers. Sortformer v2.1 has to squeeze them into 4, which costs 21–29% line agreement.
Memory: on the 85 min meeting, both ggml runtimes peaked near 2 GB (pyannote MPS 8.7 GB). Hex should feed long meetings through the streaming API rather than as one whole buffer.
Candidates
Model
Licence
Download
Max speakers
Voiceprint
From Rust
{cand}
Voiceprints: what works and what doesn't
Naming by nearest match works: Nemotron-3 + CAM++ named 15 of 16 cross-call appearances. The one miss was the voice that appears only once (Marcus), and it was confidently matched to someone else.
CAM++ cosines are squeezed together on codec audio: the same voice scores 0.85–0.94 and the closest different voice 0.81–0.89. That leaves no fixed threshold that rejects strangers. TTS clones from one model probably make this worse than real people would. Before Hex auto-assigns names, calibrate on real enrolments (score normalisation, or a margin over the second-best match).
Hex ships no ONNX Runtime. To keep voiceprints on ggml, a speaker-verification ECAPA-TDNN fits transcribe.cpp's existing ECAPA family (used today for language ID). It hasn't been measured yet.
Synthetic calls
{players}
Code: research/meeting-speakers/ in the Hex repo (draft PR). Real audio, transcripts and results stay on the owner's machines, in private/ here.