# Speaker Diarization

> The Speaker Diarization is a technique that determines who spoke when in an audio recording.

## What is speaker diarization?

The technique that splits a recording into segments and labels them by speaker, for example 'Speaker 1' and 'Speaker 2'. Used for meeting notes, interviews and call analytics.

- Topic: Voice AI
- Type: technique

## Example

Wrong:

```json
{
  "text": "Hi, thanks for joining. Happy to be here."
}
```

Right:

```json
{
  "segments": [
    { "speaker": "S1", "start": 0.0, "end": 1.6, "text": "Hi, thanks for joining." },
    { "speaker": "S2", "start": 1.8, "end": 2.9, "text": "Happy to be here." }
  ]
}
```

Segments with speaker labels and timestamps keep who said what, which a single text field loses.

## Key points

- Each transcript segment keeps its speaker label and timestamps.
- The expected number of speakers is passed to the model when it is known.

## Interview questions

### Does speaker diarization identify people by name?

No, it labels speakers as 'Speaker 1', 'Speaker 2' and so on. Mapping labels to real names needs a separate step, such as voice enrollment or manual tagging.

### Why does diarization mix up speakers?

Overlapping speech, similar voices, short turns and noisy audio make speakers hard to separate. Giving the expected number of speakers often helps.

### Is diarization the same as speaker recognition?

No. Diarization answers who spoke when within one recording. Speaker recognition checks whether a voice matches a known, enrolled person.

## Related cards

- [Speech-to-Text](https://wonderium.dev/ai/speech-to-text.md)
- [Word Error Rate](https://wonderium.dev/ai/word-error-rate.md)
- [Voice Pipeline](https://wonderium.dev/ai/voice-pipeline.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/speaker-diarization
- Last updated: 2026-11-25
