Skip to main content
QUICK REVIEW

[Paper Review] Speaker and Language Change Detection using Wav2vec2 and Whisper

Tijn Berns, Nik Vaessen|arXiv (Cornell University)|Feb 18, 2023
Speech Recognition and SynthesisComputer Science3 citations
TL;DR

This paper proposes a unified approach to speaker and language change detection by fine-tuning Wav2vec2 and Whisper models with special tokens (SC, NL/DE/FR) for speaker and language changes. It demonstrates that the speaker change token's representation can serve as a speaker embedding, achieving 10% equal error rate in speaker recognition and sub-5% language detection error rates, with minimal degradation in ASR performance.

ABSTRACT

We investigate recent transformer networks pre-trained for automatic speech recognition for their ability to detect speaker and language changes in speech. We do this by simply adding speaker (change) or language targets to the labels. For Wav2vec2 pre-trained networks, we also investigate if the representation for the speaker change symbol can be conditioned to capture speaker identity characteristics. Using a number of constructed data sets we show that these capabilities are definitely there, with speaker recognition equal error rates of the order of 10% and language detection error rates of a few percent. We will publish the code for reproducibility.

Motivation & Objective

  • To investigate whether pre-trained transformer ASR models can detect speaker and language changes without architectural modifications.
  • To evaluate if the speaker change token (SC) in Wav2vec2 can be conditioned to encode speaker identity for downstream speaker recognition.
  • To explore multi-task learning by jointly training for ASR, speaker change detection, and language identification in multilingual settings.
  • To assess the robustness of the approach using constructed datasets with synthetic speaker and language transitions.
  • To enable end-to-end detection of speaker and language changes with minimal inference latency, suitable for real-time applications like captioning.

Proposed method

  • Fine-tune Wav2vec2 and Whisper models by adding special tokens (SC, NL, DE, FR) to the target vocabulary for speaker and language change detection.
  • Train models using CTC loss with speaker change labels placed either between speaker turns (Speaker Separator) or at the start of each segment (Speaker Announce).
  • Condition the speaker change token representation in Wav2vec2 to capture speaker identity, enabling downstream speaker recognition using the SC embedding.
  • Extend the approach to multilingual settings by introducing language labels (NL, DE, FR) before each speech segment, combining language and speaker change detection.
  • Use a mixed training strategy with both single-speaker and multi-speaker waveforms to improve generalization and reduce false positives.
  • Evaluate performance using WER (Word Error Rate), LER (Language Error Rate), EER (Equal Error Rate), and fraction of valid trials for speaker recognition.

Experimental results

Research questions

  • RQ1Can pre-trained ASR models like Wav2vec2 and Whisper detect speaker changes when fine-tuned with a dedicated speaker change token (SC)?
  • RQ2Can the representation of the SC token in Wav2vec2 be used as a meaningful speaker embedding for speaker recognition?
  • RQ3How does joint training for ASR, SCD, and language identification affect performance across all tasks?
  • RQ4What is the impact of language change detection on speaker change detection performance in multilingual settings?
  • RQ5Can the model maintain high ASR accuracy while achieving low error rates in speaker and language change detection?

Key findings

  • Wav2vec2 with speaker change detection achieves a speaker recognition equal error rate (EER) of 10.0% on LibriSpeech dev-clean, demonstrating the SC token's effectiveness as a speaker embedding.
  • Language change detection using multilingual fine-tuning achieves a language error rate (LER) of 1.16% with Whisper medium and 1.22% with Wav2vec2 XLSR, indicating strong language detection performance.
  • The false positive rate for speaker change detection is kept low at 0.02% for Whisper medium and 0.20% for Wav2vec2 XLSR, corresponding to one false positive per 205–5000 seconds.
  • The model maintains strong ASR performance (WER 12.7% for Whisper medium) even when jointly trained for SCD and language identification.
  • The fraction of valid speaker recognition trials drops when using longer concatenated waveforms due to missing SCs in later segments, but the model still retains speaker recognition capability.
  • Language change detection improves SCD performance by reducing false negatives, as language switches inherently imply speaker changes in the test setup.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.