1 of 72

Speech Technology 2025

Лекция #8

Speaker Recognition

Георгий Господинов

2 of 72

Plan

  • Tasks
  • Metrics
  • Workflow
  • Model Training
  • Encoders
  • Layer Knowledge
  • Datasets

3 of 72

​

Tasks

4 of 72

Tasks

Tasks

KeyWord Spotting

Speech Recognition

Language Identification

Speaker Recognition

Emotion Recognition

Linguistic

Paralinguistic

5 of 72

Tasks

Tasks

KeyWord Spotting

Speech Recognition

Language Identification

Speaker Recognition

Emotion Recognition

Speaker Identification

Speaker Verification

Speaker Diarization

Linguistic

Paralinguistic

which member from a group is speaking

confirm that a speaker matches a known

segmenting audio recordings by speaker labels

6 of 72

Tasks

Tasks

KeyWord Spotting

Speech Recognition

Language Identification

Speaker Recognition

Emotion Recognition

Speaker Identification

Speaker Verification

Speaker Diarization

Linguistic

Paralinguistic

Text

Dependent

Text-

Independent

7 of 72

Vector Space Model

5.77

1.61

...

-0.96

-0.87

-0.74

0.11

...

-1.00

-0.92

8 of 72

Vector Space Model

5.77

1.61

...

-0.96

-0.87

-0.74

0.11

...

-1.00

-0.92

Feature Extraction &

Speaker Encoder

9 of 72

Vector Space Model

5.77

1.61

...

-0.96

-0.87

-0.74

0.11

...

-1.00

-0.92

Feature Extraction &

Speaker Encoder

10 of 72

Applications

  • voice biometry

11 of 72

Applications

  • voice biometry
  • device personalization
    • play my summer playlist
    • show me my reminders
    • Hey Google → Hey <username> !

12 of 72

Applications

  • voice biometry
  • device personalization
    • play my summer playlist
    • show me my reminders
    • Hey Google → Hey <username> !
  • archive search

13 of 72

Applications

  • voice biometry
  • device personalization
    • play my summer playlist
    • show me my reminders
    • Hey Google → Hey <username> !
  • archive search
  • auxiliary task
    • Multi-Speaker Text-To-Speech

​

14 of 72

Applications

  • voice biometry
  • device personalization
    • play my summer playlist
    • show me my reminders
    • Hey Google → Hey <username> !
  • archive search
  • auxiliary task

​

15 of 72

Applications

  • voice biometry
  • device personalization
    • play my summer playlist
    • show me my reminders
    • Hey Google → Hey <username> !
  • archive search
  • auxiliary task

​

16 of 72

Applications

  • voice biometry
  • device personalization
    • play my summer playlist
    • show me my reminders
    • Hey Google → Hey <username> !
  • archive search
  • auxiliary task

17 of 72

​

Metrics

18 of 72

True Positive

False Negative

False Positive

👍

👍

👎

Model

Prediction

19 of 72

Score Distribution

20 of 72

Score Distribution

matching threshold

21 of 72

Detection Error Tradeoff

  • FAR:
    • False Accepts Rate
    • FAR = FP / (FP + TN)
    • false alarm probability
  • FRR
    • False Rejects Rate
    • FN / (FN + TP)
    • miss probability

22 of 72

Detection Error Tradeoff

  • FAR:
    • False Accepts Rate
    • FAR = FP / (FP + TN)
    • false alarm probability
  • FRR
    • False Rejects Rate
    • FN / (FN + TP)
    • miss probability
  • EER
    • Equal Error Rate
    • FAR = FRR

23 of 72

Detection Error Tradeoff

  • FAR:
    • False Accepts Rate
    • FAR = FP / (FP + TN)
    • false alarm probability
  • FRR
    • False Rejects Rate
    • FN / (FN + TP)
    • miss probability
  • EER
    • Equal Error Rate
    • FAR = FRR

secure, not user-friendly

biometry

24 of 72

Detection Error Tradeoff

  • FAR:
    • False Accepts Rate
    • FAR = FP / (FP + TN)
    • false alarm probability
  • FRR
    • False Rejects Rate
    • FN / (FN + TP)
    • miss probability
  • EER
    • Equal Error Rate
    • FAR = FRR

secure, not user-friendly

biometry

user-friendly, not secure

archive search

25 of 72

​

Workflow

26 of 72

Enrollment Stage

Feature Extraction

Feature Extraction

Feature Extraction

Speaker Encoder

Speaker Encoder

Speaker Encoder

Aggregation

​

​

​

User Profile

27 of 72

Enrollment Stage

Feature Extraction

Feature Extraction

Feature Extraction

Speaker Encoder

Speaker Encoder

Speaker Encoder

Aggregation

​

​

​

User Profile

28 of 72

Runtime Stage

Feature Extraction

Speaker Encoder

Matching

​

​

​

User Profile 1

User Profile 2

User Profile 3

Recognition Result

29 of 72

Deployment

​

​

​

​

​

​

​

​

​

​

​

User Device

Model

Speech Engine

​

​

​

User Profile

  • not require internet connection
  • all information on device
  • memory, cpu, power
  • small optimized models

30 of 72

Deployment

​

​

​

​

​

​

​

​

​

​

​

User Device

Model

Speech Engine

User Device

Frontend Server

Database

​

​

Cloud Server

​

​

​

​

​

​

​

​

​

​

​

Model

Speech Engine

User Profile

User Profile

  • not require internet connection
  • all information on device
  • memory, cpu, power
  • small optimized models
  • large-scale models
  • privacy

31 of 72

Deployment

​

​

​

​

​

​

​

​

​

​

​

User Device

Model

Speech Engine

User Device

Frontend Server

Database

​

​

Cloud Server

​

​

​

​

​

​

​

​

​

​

​

Model

Speech Engine

User Profile

User Profile

​

​

​

User Device

​

Frontend Server

Cloud Server

​

​

​

​

​

​

​

​

Model

Speech Engine

User Profile

  • not require internet connection
  • all information on device
  • memory, cpu, power
  • small optimized models
  • large-scale models
  • privacy
  • large-scale models
  • +/- privacy
  • device memory

32 of 72

Deployment: Model update, v1

5.77

1.61

...

-0.96

-0.87

-0.74

0.11

...

-1.00

-0.92

33 of 72

Deployment: Model update, v2

8.41

20.7

...

6.53

-34.8

-0.65

-1.52

...

-3.66

-7.77

34 of 72

Deployment: stateful system

  • user profiles are version-dependent ⇒ store enrollment audio and recalculate user profiles
  • Version Control of Speaker Recognition Systems (Google, 2020)

35 of 72

Deployment: stateful system

  • user profiles are version-dependent ⇒ store enrollment audio and recalculate user profiles
  • Version Control of Speaker Recognition Systems (Google, 2020)

User Device

Frontend Server

Database

​

​

​

​

Cloud Server

​

​

​

​

​

​

​

Model V2

Speech Engine

User Profile V1

User Profile V2

Cloud Server

​

​

​

​

​

​

​

Model V3

Speech Engine

user ids

Recognition Result

Recognition Result

user ids

version

replace

36 of 72

​

Model Training

37 of 72

Cross-Entropy

​

​

​

​

​

​

​

38 of 72

Cross-Entropy

​

​

​

​

​

​

​

39 of 72

Cross-Entropy

​

​

​

​

​

​

​

40 of 72

Cross-Entropy

​

​

​

​

​

​

​

Nearest Neighbours

41 of 72

Cross-Entropy:

42 of 72

Modified Softmax

43 of 72

Modified Softmax

44 of 72

Modified Softmax

45 of 72

SphereFace (Angular Softmax)

46 of 72

SphereFace (Angular Softmax)

47 of 72

SphereFace (Angular Softmax)

48 of 72

*Face*

49 of 72

*Face*

Finally, we took inspiration from the face recognition literature, SphereFace2, and incorporated ideas from a novel binary classification training framework into our training loss function. This helped bridge the gap between how speaker embedding extractors are typically trained as a multiclass classifier via cross-entropy loss and how they are used at inference—to make a binary accept/reject decisions.

​

Voice Trigger System for Siri (Apple, 2023)

50 of 72

Open Set Problem

Does society place too much importance on sports?

How do sports contribute to the society?

How do you get a book published?

What are the good ways to write and publish a book?

51 of 72

Triplet Loss

Speaker Encoder

Speaker Encoder

Speaker Encoder

anchor

positive

negative

A

P

N

52 of 72

Triplet Loss

A

hard negative

P

N

N

N

semi hard negative

easy negative

α

53 of 72

​

Encoders

54 of 72

ECAPA-TDNN

55 of 72

ECAPA-TDNN

56 of 72

ECAPA-TDNN

57 of 72

ECAPA-TDNN

58 of 72

ECAPA-TDNN

59 of 72

ECAPA-TDNN

60 of 72

ECAPA-TDNN

61 of 72

ECAPA-TDNN

62 of 72

MFA-Conformer

63 of 72

MFA-Conformer

FeedForward

+

Multi-Head

Self-Attention

+

Convolution

Module

+

FeedForward

+

LayerNorm

64 of 72

MFA-Conformer

65 of 72

MFA-Conformer

66 of 72

​

Layer Knowledge

67 of 72

Self-Supervised Pre-training

Speaker tasks

Content tasks

68 of 72

ASR Pre-training

69 of 72

​

Datasets

70 of 72

VoxCeleb

71 of 72

VoxTube

72 of 72

Спасибо за внимание!

@georgygospodinov