Meeting transcription is the one place where "just use the cloud service" is hardest to argue with. And it's exactly the place where it bothers me most, because a meeting recording isn't only your voice. It's everyone else's too, and they didn't sign up for some service's terms.
So YazSes, the offline dictation tool I work on, does meetings and file transcription locally as well: speech-to-text plus speaker labels ("who said what"), on a normal CPU.
Two commands
For a file you already have, anything ffmpeg can decode:
yazses transcribe interview.m4a --diarize --format md
Useful flags:
-
--formattxt, md, srt, vtt or json -
--speakers Nif you know the count (but read on) -
--names 'Alice,Bob'or--rename speaker_0=Alicefor readable labels -
--language ''to auto-detect, ortranslateto output English
You can try it without installing anything, through Docker:
docker run --rm -v "$PWD:/data" ghcr.io/mskazemi/yazses transcribe /data/talk.m4a --diarize
For a live meeting, it's off by default, so turn it on first:
yazses features enable meeting
yazses meeting start
# ...talk...
yazses meeting stop
While it runs you get a live transcript. When you stop, it writes a folder for that meeting: transcript.md with speaker labels, transcript.json, a quality report, and so on. The audio itself is deleted after processing unless you set retain_audio = true.
What's under the hood
Speaker diarization usually means pyannote.audio, which means PyTorch, often a GPU, and a Hugging Face token to accept the model's terms. That's a lot to ask of someone who wants a transcript of a call.
The default backend instead uses sherpa-onnx: the pyannote segmentation-3.0 model plus a 3D-Speaker embedding model, followed by clustering, all on ONNX Runtime. No torch, no GPU, no token. The extra models are a few tens of megabytes. (pyannote is still available as an optional backend if you want it.)
Keeping the logic testable
The design rule that runs through this whole project shows up here too: the heavy model is passed in, and the decisions are plain Python.
The segmenter that decides where an utterance ends doesn't know which voice-activity detector it's using. It's given a function:
silent = bool(self._is_silent(chunk))
...
if not self._voiced:
if silent:
return None # drop leading silence
self._voiced = True
self._buf.append(np.asarray(chunk, dtype="float32"))
self._buf_len += n
self._trailing_silence = self._trailing_silence + n if silent else 0
if self._buf_len >= self._max:
return self._flush()
if self._trailing_silence >= self._hangover and self._buf_len >= self._min:
return self._flush()
Same on the file side: the step that assigns each transcribed word to a speaker (maximum overlap with a speaker turn, nearest turn as a fallback, the same approach WhisperX uses) is dependency-free Python, tested without loading any model.
The measurement that surprised me
I evaluated diarization on 16 real meetings from the AMI corpus (headset mix). The metric is diarization error rate (DER): the share of time attributed to the wrong speaker, a missed speaker or a phantom one. Lower is better.
| Setting | DER (strict) | DER (250 ms collar) | Avg. error in speaker count |
|---|---|---|---|
| Auto-detect speaker count | 26.7% | 19.9% | 2.06 |
| Told the true count (4) | 29.4% | 23.4% | 0.06 |
Telling it the right number of speakers fixed the speaker count almost perfectly, and made the overall error worse. Speaker confusion rose from 13.5% to 16.3%.
My reading of it: forcing exactly four clusters makes the clustering split or merge voices to hit the number, and some of those splits are wrong. When it's free to choose, it sometimes finds three or five speakers, but the boundaries it draws fit the audio better. That's an interpretation, not something I've proven, and it's one corpus with close-talk microphones. A single laptop mic in the middle of a table will do worse on everything.
The practical advice: don't pass --speakers by default. Try without it first.
Honest limits
- These numbers are for headset audio. I have no measured DER for far-field (one mic on the table) recordings.
- The meeting "summary" and "notes" features need an optional local model that you supply. Without it, you get transcripts, not minutes.
- The more accurate Silero voice-activity backend is optional and heavy: when I measured it,
yazses[silero]resolved to about 3 GB, mostly PyTorch and CUDA.
What I took away
- For other people's voices, local is the respectful default, not just the private one.
- Pick the dependency stack your users can actually install. ONNX Runtime on a CPU reaches far more people than torch plus a GPU plus a token.
- Measure the "obvious" improvement. Giving the model more correct information made it worse here. I'd never have guessed.
YazSes is offline, open source (Apache-2.0): github.com/MSKazemi/yazses.
I wrote this with help from an AI assistant for drafting and editing; the feature, the evaluation and the interpretation are mine, and I checked every number against the result files in the repository.

Top comments (0)