Attribute a speaker in a transcript
Pause at quotation marks and keep the quoted words together. · 191 words
Speaker attribution starts with transcript labels, not guesses about identity. Give the model a labeled transcript and define the output. For example, 'MARA: "The bridge opens at noon." UNKNOWN: "Then we can test it at one." JON: "Only if the signs are ready."' Ask: 'Identify the speaker of "Then we can test it at one," quote the line, and report the label exactly. If it says UNKNOWN, do not replace it with a name. Do not infer identity from job, gender, or topic.' The checkable answer is UNKNOWN because that label is attached to the line. A line-label-quote table makes verification easy.
Test cues with another source: 'HOST: "Welcome back." [Door opens] WOMAN: "Thanks for having me." GUEST: "Should we begin?"' Ask who says "Should we begin?", what evidence supports it, and which cue is background. The careful answer is GUEST because the line is explicitly labeled. The door sound does not establish a name. If a transcript later says 'SPEAKER 2 = Dr. Lee,' the model may link those labels only because the source states it. End with one row per line: label, exact text, evidence, and 'unknown' if needed.
Check your recall
In the podcast example, who says "Should we begin?", and what should the model avoid using to identify the speaker?
Check your answer
GUEST says "Should we begin?" because the transcript explicitly labels the line. The model should not use the door sound or unsupported clues about identity to identify the speaker.
Sources and credits
Original KeyTouch lesson. Background reading · DAIR.AI · Elements of a Prompt.