Turn it on
Speaker labels are a Batch feature. Setwith_diarization: true in the job’s config, and optionally num_speakers, the most speakers to separate. Each segment of the transcript then carries a speaker_id. This example runs the whole job on the two-speaker sample clip:
Examples
A synthetic call (Timbre v3.0, Hindi, 12.2 seconds): three turns from two voices, an agent and a customer.
The segments from a Prisma v3.0 job with
with_diarization: true and num_speakers: 2:
The agent’s two turns are both
1, and the customer is 2. Prisma v2.5 split and labelled the same three turns at the same times, with its own wording. Both models also returned labels without with_diarization: see By model.
By interface
- Batch
- REST
- Realtime
config.with_diarization and config.num_speakers on Create job. Each segment in the transcript document has speaker_id, start_time and end_time.By model
Rules and limits
Things to watch for
- Labels are per file. Speaker
1in one file and speaker1in another are not the same person. Map labels to people yourself, for example by who speaks first. num_speakersis a ceiling. Set it lower than the real number of speakers and some voices cannot be told apart. If you are not sure, leave the default of 5.speaker_namesdoes not label speakers. It helps the model spell names that are spoken; on Batch it cannot be combined withkeytermsortopic.- Prisma v3.0 labels speakers even without
with_diarization. Set it totrueif you want a file to fail when labelling fails, rather than come back without reliable labels. - Short turns and overlapping speech are the hardest to label. The example uses clean synthetic speech with clear pauses; test with your own recordings.
- Python SDK: the options are
diarizationandspeakers. Settingspeakersalso turnsdiarizationon.
Related
Batch transcription
Jobs, statuses, webhooks and limits.
Get job files
Every field of the transcript document.
Detect the language
Language per segment on Prisma v3.0.
Call analytics
A worked example that builds on speaker-labelled transcripts.

