Speech-to-Speech Translation › Speaker Preservation

Michael BrenndoerferNovember 25, 20266 min read
Language AI HandbookAll chapters
Part 27 of 67Machine Translation and Speech Translation
Chapter 196Speech-to-Speech Translation › Speaker Preservation
Reading section 5 of 14 · Speaker Preservation · 6 minSection 5 of 14 · 6 min

Section 5 of 14 · 6 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Two different concerns hide under the umbrella of "speaker preservation":

  1. Voice similarity: the synthesized target speech should sound like it was spoken by the same person as the source. If the source is a low-pitched older man, the target should not be a high-pitched young woman.
  2. Speaker consistency: keep the output voice stable for each speaker across their turns. In a translated meeting, a returning speaker should sound like the same person as in their earlier turns. Different speakers can retain distinct voices.

A third concern is naturalness. If a product offers a choice of voices or styles, rate target-language naturalness, similarity to the source speaker, and consistency across turns separately.

Speaker Embeddings

One way to preserve speaker characteristics is to condition synthesis on a speaker embedding es∈Rde_s \in \mathbb{R}^d extracted from the source. Translatotron 2 instead learns voice preservation without explicit source-speaker embedding conditioning at inference. Examples of speaker representations include:

  • x-vectors (Snyder et al., 2018): TDNN-based embeddings from a speaker classification model.
  • d-vectors: Variani et al. (2014) extracted fixed-dimensional speaker representations from a feed-forward network for text-dependent verification. Wan et al. (2018) later trained an LSTM speaker encoder with a generalized end-to-end verification loss. Variani et al. · Wan et al.
  • ECAPA-TDNN (Desplanques et al., 2020) extends the TDNN approach with squeeze-excitation blocks and channel-dependent attentive statistics pooling.
  • Self-supervised embeddings. WavLM pretrains a speech representation without speaker labels for that objective. Its speaker-verification experiments train a downstream model on labeled speakers. The same pretrained representation can also support speech recognition.

The two speaker embeddings must have the same dimension dd and nonzero norms. The cosine formula below divides by both norms.

The synthesized target speech should produce an embedding ete_t that is close to ese_s, measured by cosine similarity:

SECS=es⋅et∥es∥⋅∥et∥\text{SECS} = \frac{e_s \cdot e_t}{\|e_s\| \cdot \|e_t\|}

where:

  • es∈Rde_s \in \mathbb{R}^d: the speaker embedding extracted from the source speech
  • et∈Rde_t \in \mathbb{R}^d: the speaker embedding extracted from the synthesized target speech
  • es⋅ete_s \cdot e_t: the dot product of the two embeddings
  • ∥es∥\|e_s\| and ∥et∥\|e_t\|: the Euclidean norms of the embeddings, normalizing the dot product into [−1,1][-1, 1]

Speaker Embedding Cosine Similarity depends on the encoder and on the language, channel, and duration of each clip. If you need to decide whether clips share a speaker, calibrate the threshold using same-speaker and different-speaker trials drawn from the deployment setting. A continuous similarity score and a speaker-verification decision answer different questions. NIST SRE21 evaluation plan

The same speaker can have different embeddings across languages or recordings. For example, the cross-language speaker-turn experiment in Jia et al. reported d-vector similarity of 0.48 for matched synthetic reference segments in its own protocol. That result is specific to its encoder and comparison setup. Translatotron 2, Appendix B

Thresholds are easier to reason about when viewed as distributions rather than single numbers. The synthetic example below uses fixed seed 7 to separate plausible same-speaker scores from different-speaker scores around a 0.7 threshold; it is an illustration, not an empirical benchmark.

PythonIn [9]
CollapseExpand
import numpy as np

rng = np.random.default_rng(7)
same_speaker_scores = np.clip(rng.normal(0.82, 0.06, 4000), -1.0, 1.0)
different_speaker_scores = np.clip(rng.normal(0.35, 0.12, 4000), -1.0, 1.0)
secs_threshold = 0.7
VisualizationOut [10]
CollapseExpand
Histogram of same-speaker and different-speaker SECS values with 0.7 threshold.
Synthetic SECS distributions for same-speaker and different-speaker pairs, with a 0.7 threshold. Real systems require task-specific calibration because cross-lingual embeddings shift the distributions.

Conditioning the Synthesizer

There are three widely used mechanisms:

  • Global conditioning. A system can concatenate the same speaker embedding to each decoder input. With FiLM, it can instead use that embedding to compute a scale and shift for each channel at the layers it modulates.
  • Reference audio conditioning: XTTS derives two inputs from reference recordings. It uses a conditioning latent for the text-to-code model and a speaker embedding for the waveform decoder. XTTS paper · XTTS inference documentation
  • Prompt-based conditioning: VALL-E encodes a short reference recording as acoustic tokens and uses those tokens as a prompt for synthesizing the target text. In the authors' experiments, the prompt could carry aspects of the speaker's emotion and the recording environment. VALL-E

Global speaker conditioning is one design option. The original S2UT Fisher experiment synthesized English targets in one voice and used a unit vocoder. Translatotron 2 generates mel-spectrograms and used WaveRNN for waveform synthesis in its evaluation. Its voice-preserving model uses acoustic information from the source instead of a separately provided speaker reference. Check where a particular model accepts voice information before choosing how to control the output. Lee et al. (2022), §§4.1–4.2 · Jia et al. (2022), §§3–5

When Voice Preservation Is Wrong

Sometimes you must not preserve the voice. Consider:

  • Interpretation for victims or witnesses: when the speaker should not be identifiable by accent or voiceprint. A whistleblower or a witness in a protected setting may need their voice altered, not preserved.
  • Consent. Ask whether the speaker agreed to have their voice reproduced in the target language and to how the recording will be used.
  • Target-language perception. Ask listeners whether the voice fits the interaction in the target language, including its register and gender-marked forms of address where relevant.
  • Safety and impersonation: a public figure's voice should not be trivially cloneable by anyone with a microphone and an API key.

A deployment can select a neutral synthetic voice by default and make preservation an explicit opt-in. Record who can authorize reuse of the voice and in which contexts. Check the disclosure and consent requirements for the intended use separately.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy