Speaker recognition analyzes the voice characteristics that distinguish the speaker, not the spoken content. It has two tasks: verification, which is answering yes or no to whether the speaker is the claimed person, and identification, which is choosing the speaker from a known set. There is also the diarization task, which is dividing a recording into segments for each speaker.
Modern systems rely on a model that converts a segment into a fixed-length embedding vector: examples are x-vectors and ECAPA-TDNN. Two embedding vectors are compared with the cosine similarity measure $\cos\theta=\frac{\mathbf{a}\cdot\mathbf{b}}{\|\mathbf{a}\|\,\|\mathbf{b}\|}$, and then compared against a threshold. If the value is 1, the direction is the same, and if it is 0, the two vectors are orthogonal.
Quality is measured by the equal error rate (EER), which is the point at which the false acceptance rate equals the false rejection rate. Choosing the threshold is a trade-off between the two errors depending on the application.
An important ethical note: the content of this lesson is educational only, and is not intended to identify real people. Using speaker recognition to surveil or identify people without their consent is unacceptable, and accuracy is affected by language, channel, noise, and the speaker's condition. In the Lab you can compare MFCC similarity between your own clips only to understand the idea.
