A plain transcript does not say who is speaking, which makes a two-person recording hard to follow. whisper.cpp has a built-in answer: speaker segmentation via tinydiarize, an experimental feature in the project’s README. It needs a special tinydiarize model, and it marks each change of speaker with [SPEAKER_TURN] in the transcript. This guide is about whisper.cpp’s own tinydiarize flag; it is different from the pyannote pipeline guide, which labels speakers with a separate diarization tool.
Download a tinydiarize model
An ordinary whisper.cpp model does not do speaker segmentation — you need one built for tinydiarize. The README downloads one like this:
./models/download-ggml-model.sh small.en-tdrz
That gives you models/ggml-small.en-tdrz.bin. Build the project first if you have not already, with the README’s own commands:
git clone https://github.com/ggml-org/whisper.cpp.git
cd whisper.cpp
cmake -B build
cmake --build build -j --config Release
Note that whisper-cli currently runs only with 16-bit WAV files, so convert your input first if it is not already one — the README’s example uses ffmpeg to convert to 16 kHz mono PCM.
Run whisper-cli with -tdrz
Run the transcription as usual, adding the -tdrz flag and pointing at the tinydiarize model. The README’s own sample command uses the project’s a13.wav sample:
./build/bin/whisper-cli -f ./samples/a13.wav -m ./models/ggml-small.en-tdrz.bin -tdrz
The log line for that run says the file is 30.0 seconds long and shows tdrz = 1, confirming the flag took effect. For a practice check, use a recording with two voices taking turns, and keep it short so you can check every turn by ear.
Read the speaker turns in the transcript
Each segment ends with a [SPEAKER_TURN] mark where the speaker changes. The README’s own output for the sample starts like this:
[00:00:00.000 --> 00:00:03.800] Okay Houston, we've had a problem here. [SPEAKER_TURN]
[00:00:03.800 --> 00:00:06.200] This is Houston. Say again please. [SPEAKER_TURN]
[00:00:06.200 --> 00:00:08.260] Uh Houston we've had a problem.
Notice that the third segment has no mark: the same speaker is still talking, so there is no turn to mark. Read the segments in order and check each mark against the recording — a mark should sit where the voice changes, not in the middle of one person’s sentence.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Model | A file called models/ggml-small.en-tdrz.bin after the download script |
The model name must be small.en-tdrz — an ordinary model has no tinydiarize support |
| Flag | The log line shows tdrz = 1 when the run starts |
Add -tdrz to the whisper-cli command — without it, no speaker marks appear |
| Marks | Segments end with [SPEAKER_TURN] where the speaker changes |
Check the -m flag points at the -tdrz model file, not a plain model |
| Turns | Each mark sits where the voice changes in your recording | Listen to the audio at that timestamp — a mark mid-sentence means the turn was misplaced |
Expected result. We checked the whisper.cpp README for the Speaker segmentation via tinydiarize section, the small.en-tdrz download command, the whisper-cli command with -tdrz on samples/a13.wav, the 30.0-second sample with tdrz = 1 in the log, and the [SPEAKER_TURN] marks in the sample output. We did not run whisper.cpp or transcribe any audio.
Limits
The README marks this feature experimental, so expect rough edges. tinydiarize marks where speakers change; it does not name the speakers — the output has [SPEAKER_TURN] marks only, no speaker names or labels. A mark can also land in the wrong place on noisy audio, so check the turns against the recording before trusting them. This is whisper.cpp’s built-in segmentation, which is different from the pyannote pipeline guide and from plain command-line transcription without the flag. We did not run whisper.cpp, so no transcript here is a recorded result.
