Speech-to-Speech Translation

Michael BrenndoerferNovember 25, 202651 min read

Compare cascaded and direct speech translation, then use a tone-based example to study signal loss, speaker similarity, prosody, latency, and evaluation.

Language AI HandbookAll chapters
Part 27 of 67Machine Translation and Speech Translation
Chapter 196Speech-to-Speech Translation
Reading the full chapter · 14 sections · 51 min14 sections · 51 min

All 14 sections · 51 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Speech-to-Speech Translation

Speech-to-speech translation (S2ST) takes audio in one language and aims to convey its meaning in spoken audio in another. A cascade uses automatic speech recognition (ASR), machine translation (MT), and text-to-speech synthesis (TTS). Neural Machine Translation, earlier in Machine Translation and Speech Translation, covered translation between text sequences. With audio as both input and output, the design also has to decide which cues to preserve, such as pauses or emphasis, and how much delay a conversation can tolerate.

Imagine a patient saying “It hurts a little” first calmly, then hesitantly. The words are the same, but the two deliveries can convey different levels of uncertainty. A plain transcript leaves those cues implicit. In a conversation, a speech translator can aim to carry over the delivery cues that matter and give the listener a timely reply.

An audio stream can carry words and cues about who spoke, how they spoke, and the recording environment. These cues can occur in the same stretch of audio. In the cascade below, ASR recovers the words. A synthesis model can also accept controls for voice or style.

This chapter compares cascaded systems that chain recognition, translation, and synthesis with direct models that take source audio and generate target audio. It examines the signals available to each design, how synthesis can preserve parts of the source delivery, and how buffering and generation affect latency. The runnable example uses synthetic tones to demonstrate a cascade and computes an illustrative latency budget from assumed stage times.

Problem Formulation: What S2ST Must Produce

Inputs and outputs deserve precise definition before we look at models, because many engineering disagreements about S2ST are really disagreements about which layer of the signal the system is responsible for. A system that produces the right words in the wrong voice is correct under one definition and wrong under another, and the difference determines what you build, what you measure, and what you ship.

A speech-to-speech translation system takes a waveform in source language ℓs\ell_s:

x∈RNs,Ns=Ts⋅fssrc,fssrc=16,000 Hzx \in \mathbb{R}^{N_s}, \quad N_s = T_s \cdot f_s^{\text{src}}, \quad f_s^{\text{src}} = 16{,}000 \text{ Hz}

where:

  • xx: the source waveform as a vector of samples
  • TsT_s: the duration of the source utterance in seconds
  • fssrcf_s^{\text{src}}: the source sampling rate in Hz
  • Ns=Ts⋅fssrcN_s = T_s \cdot f_s^{\text{src}}: the total number of source samples

and produces a waveform in target language ℓt\ell_t:

y∈RNt,Nt=Tt⋅fstgt,fstgt=24,000 Hzy \in \mathbb{R}^{N_t}, \quad N_t = T_t \cdot f_s^{\text{tgt}}, \quad f_s^{\text{tgt}} = 24{,}000 \text{ Hz}

where:

  • yy: the synthesized target waveform
  • TtT_t: the duration of the target utterance in seconds
  • fstgtf_s^{\text{tgt}}: the target sampling rate in Hz
  • Nt=Tt⋅fstgtN_t = T_t \cdot f_s^{\text{tgt}}: the total number of target samples

The rates above are example interface choices. Whisper resamples input to 16 kHz before extracting features. A synthesis checkpoint has its own output sampling rate, so read that rate from its configuration before passing the waveform to playback or evaluation. At a fixed duration, halving the sample rate halves the number of raw samples. The change in model compute depends on the feature extractor and model. Whisper

The sample counts NsN_s and NtN_t can differ because the sampling rates or utterance durations differ. When dubbed segments play sequentially without resetting to source timestamps, differences in segment and pause durations accumulate. An editor can limit the drift by anchoring segments to the source timeline and adjusting their timing. In their isochrony-aware translation study, Tam et al. (2022) project pause markers and use character count as a proxy for phrase length. Check the timing of the synthesized speech separately.

Both xx and yy contain (at least) four superposed signal layers:

  • Linguistic content: the words, syntax, and meaning, which must be preserved. This is the layer that text MT operates on directly, and the layer that ASR is designed to expose.
  • Speaker identity: cues that help a listener recognize who is talking. Speaker encoders can represent aspects of a voice with embeddings such as x-vectors and d-vectors.
  • Prosody: pitch (F0), duration, rhythm, and energy contours that carry emphasis, emotion, and pragmatic cues. Prosody tells the listener whether a sentence is a question or a statement, which word is focused, and whether the speaker is amused, angry, or uncertain.
  • Channel and environment: background noise, reverberation, and microphone effects. Decide whether these are relevant to the listener. For a phone call from a moving car, the synthesized output can omit the road noise.

Preserve the message and the delivery cues appropriate to the task. Choose whether to retain the speaker’s voice separately, with authorization. Synthesis can use information about the source delivery or speaker if the application needs it and the model accepts it.

Matching word sequences alone can miss the intended reading. An idiom can have a meaning different from its literal translation. For example, when “break the ice” means to start a conversation, translate that intent. When a passage marks a speaker relationship, check whether the target uses the appropriate form of address.

Speech-to-Text Translation vs. Speech-to-Speech

Speech-to-text translation produces translated text in ℓt\ell_t. Speech-to-speech translation produces a waveform. This adds a synthesis objective. In a cascade, recognition and translation can also affect which delivery cues reach the synthesizer. A correct text translation can leave the intended voice or emphasis unspecified.

Cascaded S2ST: The Baseline

The cascaded approach is exactly what its name suggests. You build three models and chain them:

y=TTSℓt(MTℓs→ℓt(ASRℓs(x)))y = \text{TTS}_{\ell_t}\Big(\text{MT}_{\ell_s \to \ell_t}\big(\text{ASR}_{\ell_s}(x)\big)\Big)

where:

  • xx: the source waveform in language ℓs\ell_s
  • ASRℓs(x)\text{ASR}_{\ell_s}(x): the source-language transcript produced by the ASR model
  • MTℓs→ℓt(⋅)\text{MT}_{\ell_s \to \ell_t}(\cdot): the machine translation step mapping the ℓs\ell_s transcript into an ℓt\ell_t transcript
  • TTSℓt(⋅)\text{TTS}_{\ell_t}(\cdot): the text-to-speech step synthesizing target-language audio from the ℓt\ell_t transcript
  • yy: the resulting target waveform

The composition is sequential: each output becomes the next stage’s input. A basic cascade can train recognition, translation, and synthesis separately on task-specific data. This lets you replace a stage when the new component supports the pipeline’s interfaces. Rerun the full cascade to check that the replacement works with its neighbors.

Each stage is a well-understood problem, and each has a mature ecosystem of open models:

  • ASR. Whisper is a multilingual recognizer trained on 680,000 hours of weakly supervised audio. The original wav2vec 2.0 and Conformer papers report recognition experiments on LibriSpeech. The larger unlabeled pre-training setting in wav2vec 2.0 used about 53,000 hours. Compare word error rates using matching languages, datasets, and recording conditions. Whisper · wav2vec 2.0 · Conformer
  • MT. Choose a text translation model and compare it on the intended directions and domains. The No Language Left Behind team used FLORES-200 to evaluate many directions. Toral (2020) found that human-parity conclusions could change when the evaluation protocol changed.
  • TTS. See Speech and Audio for VITS and FastSpeech 2. SpeechT5 and VALL-E are other examples. VALL-E 2 reported human-parity performance on the authors’ chosen LibriSpeech and VCTK evaluations.

The cascade lets you replace components independently. A better transcript can help translation, and a better voice model can improve the final audio. Rerun the full cascade after changing either component, since changes in segmentation, punctuation, or target text can alter what the following stage receives. A basic cascade can be built from separate speech–transcript, text–translation, and text–speech datasets.

A cascade that exposes its transcript and translated text gives you two intermediate outputs to inspect. Use them to trace an error before examining the synthesized waveform. For regulated use, check the applicable requirements for interpretation and records.

Why the Cascade Leaks Information

The cascade's core weakness is that each stage throws away information the next stage might have wanted.

A three-second waveform at 16 kHz contains 48,000 samples per channel. If the recognition stage passes plain text to translation, the next stage receives words without dedicated fields for the speaker or pitch. That boundary matters when the source uses delivery to distinguish meanings:

  • Sarcasm and rhetorical questions. A phrase such as “Great, another meeting” can convey enthusiasm or annoyance. Cheang and Pell (2008) found pitch differences among attitudes in recorded English utterances.
  • Emphasis. Stressing he in “I didn’t say he stole it” can make a different person salient. The words stay the same, and the listener’s interpretation depends on the surrounding conversation.
  • Emotional prosody, where the same words should translate to different target renditions depending on delivery (flat, angry, amused). "Fine" can mean agreement, resignation, or barely concealed fury.
  • Turn-taking and backchannels. Pitch and timing can help distinguish a brief encouragement to continue from an acknowledgment or a move to take the floor. Benus et al. (2007) study these distinctions in short affirmative responses in American English.
  • Politeness. Honorific forms and vocal delivery can both carry politeness cues in Japanese and Korean. The acoustic cues vary with the speaker and context.

A synthesizer given only target text has no source voice signal. You can supply speaker information separately, for example through an embedding, a reference recording, or an acoustic prompt. Check which conditioning inputs the model accepts and how well the output preserves the intended voice.

A text-only recognition interface passes lexical evidence downstream and leaves out many details of delivery. Which cues survive depends on the output representation and any side inputs. In the fixed tone example below, the word IDs even identify their assigned source fundamentals, though they leave out harmonic weights and pitch variation within an ID. To preserve a cue that the interface omits, pass it separately.

To make the bottleneck concrete, compare illustrative rates for fixed-width PCM samples, quantized mel features, and text tokens. The text estimate uses log⁡2V\log_2 V bits per token for a vocabulary of size VV. With 50,000 entries, that is about 15.6 bits per token in the model, and a fixed-width binary code would allocate 16. An ordinary text transcript has no dedicated fields for the source speaker or pitch.

PythonIn [3]
CollapseExpand
import numpy as np

sample_rate = 16000
bits_per_sample = 16
pcm_bps = sample_rate * bits_per_sample

mel_frames_per_sec = 50
mel_bins = 80
bits_per_mel_value = 8
mel_bps = mel_frames_per_sec * mel_bins * bits_per_mel_value

tokens_per_sec = 4.0
asr_vocab = 50000
text_bps = tokens_per_sec * np.log2(asr_vocab)

bitrate_labels = ["PCM audio", "Mel features", "ASR text"]
bitrate_values = [pcm_bps, mel_bps, text_bps]
VisualizationOut [4]
CollapseExpand
Log bar chart comparing raw audio, mel features, and ASR text bit rates.
Illustrative bit rates for PCM audio, quantized mel features, and text tokens. The text bar uses an idealized log₂ vocabulary-size estimate per token.

Error Cascading

A recognition error can propagate through the cascade. If ASR transcribes “The cat sat on the mat” as “The cat sat on the Mac”, translation and synthesis can deliver that altered content in the target language. An illustrative product of stage success rates gives about 92% when the successive rates are 95%, 99%, and 98%. Treat those rates as conditional on prior stages preserving the item, or assume independence to multiply unconditional rates.

A simple yield curve models a success requirement at all three stages. It uses one minus the displayed word error rate as a proxy for ASR success. Actual word error rate counts edits, including insertions, and need not map to the probability that the intended meaning survived.

PythonIn [5]
CollapseExpand
import numpy as np

wer_values = np.linspace(0.0, 0.30, 61)
mt_fidelity = 0.99
tts_intelligibility = 0.98
cascade_yield = (1.0 - wer_values) * mt_fidelity * tts_intelligibility
VisualizationOut [6]
CollapseExpand
Line plot of cascade success versus ASR word error rate.
Illustrative cascade yield as ASR word error rate rises. The curve multiplies the recognition success proxy by fixed MT and TTS success rates. The dashed line marks the assumed MT success rate on its own.

Errors can depend on one another, so the product of the marginal stage rates is one scenario. With marginal success rates of 95%, 99%, and 98%, the probability that all three succeed can range from 92% to 95%, depending on how the failures overlap. The low end occurs when failures hit disjoint examples. The high end occurs when the examples that fail translation or synthesis are already among those that fail recognition. In the earlier mat-to-Mac example, a synthesizer could pronounce the mistranslation clearly.

For conversational speech, test disfluencies, restarts, and overlapping turns. Teleki et al. (2024) found differences between two recognition systems on disfluent podcast speech. A clean read-speech score alone leaves open how the recognizer will handle your meeting or phone-call audio.

Alignment and Segmentation

The stages can commit at different times. In streaming ASR, the update interval and the amount of audio available to stabilize the transcript are separate choices. A partial transcript can withhold a cue that matters for translation, including an antecedent from an earlier sentence. A synthesis boundary can cut through a prosodic phrase. Choose boundaries with the required context and latency in mind.

Streaming from a live conversation forces a chunking policy that induces latency. The system must decide when it has heard enough to commit to a transcription, when it has enough context to translate, and when it has enough translated text to synthesize. Each decision is a bet, and each bet can be wrong. We'll come back to this in the latency section.

Direct (End-to-End) S2ST

A direct system learns to map source audio to target audio within one model. The intermediate representations vary by architecture. Translatotron predicted acoustic features, while UnitY uses a first pass over target text and a second pass over speech units. In either case, the external interface is audio in and audio out. Translatotron · UnitY

y=fθ(x)y = f_\theta(x)

where:

  • x∈RNsx \in \mathbb{R}^{N_s}: the source waveform of Ns=Ts⋅fssrcN_s = T_s \cdot f_s^{\text{src}} samples
  • y∈RNty \in \mathbb{R}^{N_t}: the target waveform of Nt=Tt⋅fstgtN_t = T_t \cdot f_s^{\text{tgt}} samples
  • fθf_\theta: the learned input-to-output mapping, parameterized by θ\theta. The sample counts NsN_s and NtN_t describe the current input and output. They can vary between utterances, and equal input lengths can produce different output lengths.

The original text-free path can retain acoustic information beyond a transcript. Joint training can also let a system use both linguistic and acoustic features when generating the target. Voice and prosody preservation depend on what the model can encode and how the training data and objectives reward preserving those signals.

The training data depend on the approach. A basic cascade can use separate datasets for ASR, text translation, and TTS. Supervised direct systems can use aligned source and target audio, including synthetic target renditions. Translatotron 3 instead starts from monolingual speech–text datasets and uses unsupervised mapping and back-translation to train a direct translator.

Inspectability depends on the outputs the model exposes. A cascade can expose the recognized source and the translated text. UnitY predicts target text in its first pass and acoustic units in its second, so an implementation can make the predicted text available for diagnosis. A direct interface that returns only audio gives you fewer artifacts to inspect.

Translatotron: Direct Spectrogram Prediction

Jia et al. introduced Translatotron in 2019 as a direct spectrogram-to-spectrogram model. The translation path generated target acoustic features from source acoustic features. Jia et al. (2019)

  • A speech encoder uses bidirectional LSTM layers to encode 80-channel log-mel features from the source speech. The evaluation setup stacks adjacent feature frames before encoding.
  • An attention-based decoder uses encoder states and previous outputs to predict 1,025-dimensional linear-frequency log-spectrogram frames for the target speech. Jia et al. (2019), §2 and Figure 1
  • The waveform reconstruction step converts the predicted spectrogram into audio. The authors compared Griffin–Lim and WaveRNN for this step. They used Parallel WaveNet to generate the Fisher experiment's synthetic English training targets.
  • Auxiliary decoders predict phoneme sequences on the source side, target side, or both during training. The main inference path produces acoustic features.

The Conversational and Fisher experiments translated Spanish speech into English. For the canonical-voice experiments, English TTS synthesized English target speech from the English translations. The original paper also reports a separate voice-transfer experiment using recorded human target speech. Jia et al. (2019), §3

The original study reported intelligible translations with a quality gap to its speech-to-text-then-synthesis baseline. An optional speaker encoder was used in the original paper's voice-transfer experiment.

Translatotron 2 and Speech-to-Unit Translation

Translatotron 2 changed how linguistic decoding and acoustic synthesis interact. Jia et al. (2022), §3

  1. A linguistic decoder predicts target phonemes. Its hidden states and a shared attention context feed an acoustic synthesizer that generates a target mel-spectrogram.
  2. The voice-preserving setup was trained to carry over the input speaker's voice. The authors also tested canonical-target synthesis as a separate configuration. Jia et al. (2022), §§4–5

Lee et al.'s speech-to-unit translation model predicts discrete target speech units. The preprint appeared in 2021 and the paper was published at ACL 2022. Lee et al. (2022)

  • A target-unit extractor maps target speech to cluster IDs. Lee et al. used k-means with K=100K=100 on hidden representations from a pre-trained HuBERT model for English target speech. At one ID per 20 ms frame, a three-second interval yields about 150 IDs before removal of consecutive duplicates. Lee et al. (2022), §4.2
  • S2UT encodes source acoustic features and predicts target units with a supervised sequence loss. The authors also tested auxiliary text supervision and joint speech/text output when transcripts were available.
  • A separate unit-based vocoder maps predicted units to audio. The Fisher setup used English target speech synthesized in a single voice.

Codebook size KK sets how many distinct unit labels the model can predict at each position. At one label per frame, frame rate determines the number of labels before consecutive duplicates are collapsed. The best codebook size depends on the representation, training data, and evaluation target. The figure illustrates a hypothetical sweep.

The plot uses illustrative curves to show how more codes might improve reconstruction while making unit prediction harder. It marks 500-2,000 as an example candidate range for comparison.

PythonIn [7]
CollapseExpand
import numpy as np

codebook_k = np.unique(
    np.round(np.logspace(np.log10(50), np.log10(4000), 240)).astype(int)
)
reconstruction = 1.0 - np.exp(-codebook_k / 500.0)
decoder_ease = 1.0 - np.log2(codebook_k) / np.log2(4000.0)
VisualizationOut [8]
CollapseExpand
Line plot of reconstruction fidelity and decoder ease versus unit codebook size.
Illustrative tradeoff between reconstruction fidelity and decoder ease as the unit codebook grows. The shaded area marks an example range of 500 to 2,000 codes.

The following schematic shows Lee et al.'s S2UT inference path, with source mel-filterbank frames entering the speech encoder.

m1:Fssrc→speech encoderh1:M→unit decoderu1:Fttgt→unit vocoderym^{\mathrm{src}}_{1:F_s} \xrightarrow{\text{speech encoder}} h_{1:M} \xrightarrow{\text{unit decoder}} u^{\mathrm{tgt}}_{1:F_t} \xrightarrow{\text{unit vocoder}} y

where:

  • m1:Fssrcm^{\mathrm{src}}_{1:F_s} is the source mel-filterbank sequence. Lee et al. use 80 features per 10 ms frame.
  • h1:Mh_{1:M}: the sequence of MM encoder hidden states
  • u1:Fttgtu^{\mathrm{tgt}}_{1:F_t} is the predicted target unit sequence. Its length depends on the target extraction and deduplication settings.
  • yy: the synthesized target waveform produced by the unit-based vocoder

A learned acoustic codebook assigns IDs to recurring target patterns. Check how well the chosen representation and vocoder preserve the distinctions that matter in each target language. Speaker conditioning can be added when a system is intended to reproduce or control a voice.

Clustering is lossy. A unit may represent several acoustically different frames. The target representation therefore affects which aspects of content, timbre, and channel survive. A speaker-conditioned vocoder can receive additional voice information through a dedicated input.

Discrete units as the target of choice

The unit labels come from clustering speech representations. S2UT can train its core decoder against these units without target transcripts. Evaluate whether the representation and vocoder preserve the distinctions that matter in each target language.

Architecture Summary

Modern direct S2ST systems share this template:

  • Speech encoder: a Conformer or wav2vec 2.0-style transformer stack. The encoder's job is to turn waveforms into a sequence of contextualized acoustic representations that are rich enough to support both translation and speaker/prosody conditioning.
  • Decoder. Some models generate units autoregressively. SeamlessM4T v2 uses non-autoregressive text-to-unit prediction. Compare runtime and quality under the same evaluation setup.
  • Vocoder. A vocoder such as unit-based HiFi-GAN produces a waveform. A model designed to control the target voice can also condition synthesis on a speaker representation.
  • Auxiliary tasks and conditioning. An auxiliary decoder can learn to predict supervised targets such as transcripts. Speaker or prosody representations can instead be supplied as conditioning inputs, including at inference.

Meta introduced SeamlessM4T in 2023 and described v2 that December. The v2 model uses a shared multilingual speech encoder and a non-autoregressive text-to-unit decoder. The released v2 checkpoint lists 36 vocoder language codes, including English. The model card lists 101 speech-input languages and 96 text languages. Check your intended output language against the checkpoint you use. SeamlessExpressive adds modeling for vocal style and prosody on top of the v2 foundation. Seamless model family, §5.

Auxiliary Supervision and Multi-Task Learning

Supervised unit prediction compares predicted labels with the target unit sequence. It penalizes a wrong unit even when the resulting audio sounds fluent. Auxiliary phoneme, character, or transcript losses provide an additional linguistic target at the layer where they are attached. Lee et al. (2022), §3.2

Auxiliary phoneme or transcript losses give the model supervision on linguistic contrasts. If the target unit sequence omits a delivery cue, preserving that cue may require a different representation or extra acoustic conditioning. Compare the versions on linguistic accuracy and delivery separately.

If you train an auxiliary head on separate monolingual data, choose an objective that fits its inputs and available labels. In Lee et al.’s paired S2UT setup, training-only auxiliary decoders use intermediate source encoder representations and predict their own supervised targets.

Speaker Preservation

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.

Prosody Preservation and Transfer

Prosody carries several kinds of information. It can mark a question or shift emphasis, and in a tone language pitch differences can also distinguish words. Identify which cues matter for the source utterance and which pitch contrasts the target language needs.

  • Copying the source pitch contour. Check whether copying it would change a target-language pitch contrast, such as a lexical tone.
  • Mapping prosody to target-language norms while retaining emphasis patterns (which words are highlighted) and emotion (valence and arousal). This is the most linguistically informed option, but it requires knowing the target language's prosodic grammar.
  • Preserving selected extralinguistic cues: carry over emotion, speaking rate, or general pitch register while allowing the target language to realize its own contrasts.

SeamlessExpressive learns an expressivity representation from the source audio. Prosody UnitY2 uses it to guide target-unit timing and generation, including speaking rate and pauses. PRETSSEL uses source expressivity to render target speech with aspects of the source voice and style. SeamlessExpressive, §4.2

  • For a hand-built diagnostic, extract a pitch (F0) contour with a tracker such as pYIN or CREPE and use frame-level RMS as an amplitude proxy. pYIN · CREPE
  • To compare speakers with different pitch registers, an illustrative mapping pairs the source's 10th, 50th, and 90th F0 percentiles with the target speaker's corresponding percentiles. This calibrates the reference points used in the comparison.
  • Interpret the comparison alongside listening tests and the target language's pitch contrasts. Similar pitch contours can have different linguistic functions.

Metrics include:

  • F0 correlation compares pitch movement on matched voiced regions. Specify the alignment and check whether the target highlights the intended words in a listening test.
  • Emotion classifier agreement compares the labels predicted for the source and translated clips. Check whether those labels match listener judgments.
  • Listener ratings can assess whether the delivery fits the intended meaning. Report the prompt, rating scale, and uncertainty around the mean opinion score.

A Concrete Example of Why This Is Hard

Record the English question “Really?” twice, once to ask for confirmation and once to express surprise. Record or synthesize two Spanish versions of “¿De verdad?”, with one delivery for each intended reading. Use the same Spanish words in both recordings.

Play the two Spanish recordings to bilingual listeners before revealing the English versions. Ask listeners to describe the intended reading of each. Compare their answers with the source readings to see whether the Spanish deliveries preserve the intended contrast.

One approach is to condition synthesis on a learned representation of how the speaker delivers the utterance. SeamlessExpressive uses such a representation to guide speaking rate, pauses, and aspects of the synthesized voice. A listening test can check whether the resulting delivery fits the source intent.

Latency and Streaming

For a serialized cascade, add the non-overlapping time spent buffering and running each model. This accounts for a processing budget within specified boundaries. A streaming system can overlap stages, so measure output timestamps for the complete system.

Ltotal=Lbuffer+LASR+LMT+LTTSL_{\text{total}} = L_{\text{buffer}} + L_{\text{ASR}} + L_{\text{MT}} + L_{\text{TTS}}

where:

  • LbufferL_{\text{buffer}}: the time spent waiting for enough audio to reduce ambiguity
  • LASRL_{\text{ASR}}: the ASR stage delay
  • LMTL_{\text{MT}}: the MT stage delay
  • LTTSL_{\text{TTS}}: the TTS stage delay
  • LtotalL_{\text{total}} is the serialized buffer-plus-processing budget. Playback, transport, and queueing are additional if they fall outside that measurement.

Natural conversation often turns over within a fraction of a second, and timing varies across communities and contexts. Use separate measurements for the delay to the first audible translation and the difference between source and target completion times. A product's acceptable delay depends on the task and interaction design. Stivers et al. (2009)

Buffering contributes delay before the next stage starts. Measure how much time the system spends waiting for source audio or a stable segment separately from the time each model spends processing it.

Offline vs. Streaming S2ST

An offline system can use the complete utterance to plan a translation. In dubbing produced before playback, it can also plan segment boundaries and timing. A streaming system accepts partial input and can begin emitting translation before the source utterance ends.

Offline systems can wait for a complete utterance before choosing a translation. A streaming system has to decide how much input to wait for and whether it can revise output that has already been emitted. Compare the quality and latency under the same evaluation setup, since the latency metric for translated speech can differ from the metric for translated text.

Simultaneous MT: Wait-k Policy

One fixed-lag policy for simultaneous text translation is wait-k. The translator reads kk source tokens before its first write, or reads the entire source if it ends sooner. It then reads one additional source token between writes until the input is exhausted. Ma et al. (2019)

yi∼p(⋅∣x≤min⁡(m, i+k−1), y<i)y_i \sim p\big(\cdot \mid x_{\leq \min(m,\ i+k-1)},\ y_{<i}\big)

where:

  • ii: the one-based position of the next target token yiy_i
  • mm: the total number of source tokens
  • x≤min⁡(m, i+k−1)x_{\leq \min(m,\ i+k-1)}: the source prefix available before that write
  • y<iy_{<i}: the target tokens already generated
  • kk: the number of source tokens the policy initially waits to read if available

For k=4k=4, the first three writes can use 4, 5, and 6 source tokens if the input is long enough. After all source tokens have arrived, the model writes the rest of the target while keeping the source prefix fixed. Increasing kk gives the model more context before it commits, at the cost of a longer initial wait. A token count is a read schedule. The delay in seconds depends on how fast input arrives and how fast the model produces each output.

kk controls the initial source-token wait. The example assumes a fixed token arrival interval and uses a saturating curve chosen to illustrate diminishing returns. Compare quality and elapsed latency on your own model and data.

PythonIn [11]
CollapseExpand
import numpy as np


def wait_k_reads(source_length, target_position, k):
    """Source tokens available at the given one-based target position."""
    return min(source_length, target_position + k - 1)


wait_k = np.arange(1, 13)
quality = 0.95 * (1.0 - np.exp(-wait_k / 4.0))
seconds_per_token = 0.2
initial_wait = seconds_per_token * wait_k
wait_k_annotations = [
    (wait_k[index], quality[index], initial_wait[index]) for index in (1, 3, 7)
]
VisualizationOut [12]
CollapseExpand
Line plot of translation quality as wait-k lag increases.
Illustrative wait-k tradeoff under a fixed source arrival time of 0.2 seconds per token. The modeled quality gains taper as initial wait increases.

A cascaded streaming design can read chunks of audio, update its ASR transcript, translate stable text, and synthesize committed segments. The 0.5–1.0 second chunk range below belongs to the illustration. Audio chunks and source text tokens are different units: an ASR hypothesis may change as more audio arrives.

Chunk-Merge-Cascade

One cascaded streaming design uses these steps:

  1. Receive source audio in chunks. Choose the interval for the model and latency budget.
  2. ASR produces partial transcripts per chunk.
  3. When a sentence boundary is detected (via punctuation prediction from the ASR or a separate segmenter), commit that span to MT.
  4. MT streams back the translation.
  5. TTS synthesizes committed target segments.

Commitment risk is the risk of emitting a translation before the source has supplied a cue that would change it. Once speech has played, a later correction cannot undo what listeners heard. Word-order differences can affect which cues arrive in time. CMU’s IWSLT 2023 system translated English speech to German text incrementally and used VITS to synthesize spoken German.

The illustration below assumes that waiting for a longer audio buffer also delays commitment and gives the system more source context. A sentence-commitment policy can instead wait for several recognition updates, so you can choose the update size and the commitment rule independently.

PythonIn [13]
CollapseExpand
import numpy as np

chunk_seconds = np.linspace(0.2, 3.0, 120)
latency_norm = chunk_seconds / 3.0
commitment_error_norm = np.exp(-chunk_seconds / 0.8)
VisualizationOut [14]
CollapseExpand
Line plot of latency and commitment error versus audio chunk size.
Illustrative chunk-size tradeoff for a streaming cascade. The modeled commitment risk falls with longer chunks while buffering delay rises. The shaded area highlights example chunk lengths from 0.5 to 1 second.

A partial transcript can be grammatical and still leave a translation choice open. One example of an adaptive policy is the text decoder in SeamlessStreaming. It uses the available source features and earlier target tokens to choose whether to emit a token or read more input.

Streaming Direct S2ST

SeamlessStreaming adapts SeamlessM4T v2 for streaming. Its text decoder uses Efficient Monotonic Multihead Attention to decide whether to emit the next target text token or read more input audio. The policy estimates readiness from the available acoustic representation and the partial target text.

SeamlessStreaming still produces an internal target text sequence. Its text-to-unit model consumes text-decoder states, and the vocoder emits speech once enough predicted units are available. This introduces an acoustic-unit buffer in addition to the text decoder's read/write decision. Streaming inference algorithm.

Evaluation

S2ST evaluation is a research topic of its own. Standard metrics include:

ASR-BLEU

ASR-BLEU compares a target-language recognizer’s transcript of the synthesized speech with the reference text translation using BLEU. Seamless uses this measure in speech translation evaluations.

ASR-BLEU=BLEU(ASR(y), r)\text{ASR-BLEU} = \text{BLEU}\big(\text{ASR}(y),\ r\big)

where:

  • yy: the synthesized target-language audio produced by the S2ST system
  • ASR(y)\text{ASR}(y): the transcript obtained by running a target-language ASR model on yy
  • rr: the reference text translation in ℓt\ell_t
  • BLEU(⋅,⋅)\text{BLEU}(\cdot,\cdot): the BLEU score between the hypothesis transcript and the reference

ASR-BLEU measures overlap between recognized text and a reference translation. It has no separate grammaticality term. When two audio outputs produce the same recognized text, their scores are the same even if the speaker or prosody differs. See Translation Evaluation Beyond BLEU for the text metric’s limits.

The evaluator ASR changes what BLEU sees. Recognition errors can lower a good translation's score or occasionally mask a speech translation error. Report the evaluator model and settings, and use separate listening tests to assess intelligibility, voice, and expression. Jia et al. (2019), §3

Speaker Similarity (SECS)

Report the speaker encoder, the embedding dimensionality, and whether the two recordings use the same language. These details specify the comparison used to obtain the cosine score.

Prosody Metrics

Common choices:

  • F0 RMSE or correlation compares estimated pitch on matched voiced regions. Dynamic time warping is one alignment option. A flexible alignment can pair the same contour shapes even when they occur at different times, so measure timing separately if it matters.
  • Duration ratio TtTs\frac{T_t}{T_s} compares total target and source durations. Phrasing, pauses, and speaking rate can all change it. Check pace separately on matched segments.
  • Emotion classifier agreement compares predicted labels for source and synthesized audio. Check classifier behavior on the speech and language you intend to evaluate.

These measures answer different questions. Estimate F0 on voiced regions. A duration ratio reflects both rate and how much was said. Work on naturalistic customer-service calls found that emotion classifiers trained on acted speech could lose accuracy on naturalistic data. Compare the automatic scores with listening judgments.

Human Evaluation

For an S2ST system intended for real users, automatic metrics are advisory. A proper evaluation asks raters:

  • Does the output translate the source accurately? (adequacy)
  • Is the output natural-sounding in the target language? (fluency)
  • Does it sound like the same person? (speaker similarity)
  • Does the delivery match the source? (prosody)
  • Would you use this in a real conversation? (willingness to use)

Score differences depend on the rubric, listeners, recordings, and sampling variability. Report rater agreement and uncertainty for the study's protocol. Assess a difference in mean opinion score with its corresponding uncertainty interval or a test suited to the study design. Jia et al. (2019), Table 4

Use listener judgments for voice, emotion, and register when they matter. ASR-BLEU can change when a choice of register changes the transcribed words. If the transcript stays the same, the score cannot distinguish changes in delivery such as a more formal tone of voice.

Multilingual Safety

S2ST has safety considerations that go beyond the usual MT concerns, because you are now producing synthetic voices.

Low-Resource and Language-Pair Coverage

Coverage varies by direction and modality. The No Language Left Behind team used FLORES-200 to evaluate text translation across more than 40,000 directions. The study also used human judgments and a toxicity benchmark. In speech translation, SeamlessExpressive's initial prosody-aligned training data covered six languages, with expression results reported for specific directions. For deployment, check translation adequacy, speech quality, and safety in the intended pair. NLLB · SeamlessExpressive, §§4.1 and 4.4

Choose which language directions to serve based on measured quality. If a direction misses the deployment threshold, the router can decline the request. Per-language fine-tuning and speaker encoders are options to test. State which directions and modalities the service supports.

A pivot introduces another translation step. If an intermediate translation loses a distinction, the next model may lack the information it needs to restore it. Compare direct and pivot routes for the target direction and modality. In a study of text MT, Soler Uguet et al. (2022) found that human evaluators preferred the English pivot over similarly sized multilingual models in their tested setup.

Once S2ST can synthesize your voice in a language you don't speak, several risks materialize:

  • Non-consensual voice cloning. A synthesized translation can make a person appear to say something in a voice like theirs without their permission.
  • Re-identification. If translated speech retains cues to the original speaker’s identity, someone who has suitable comparison recordings may be able to link it to that speaker. Test any anonymization you rely on with the translated audio and the intended threat model.
  • Voiceprint permissions. If the speaker hasn’t authorized voice preservation, offer translation in a neutral voice or decline the request for voice preservation.

For voice preservation, obtain consent and record its scope. Attach verifiable provenance or use a watermark when the application calls for it. Watermark detectability depends on the design and on what processing the audio undergoes. See Speech and Audio.

Record the settings in which a speaker authorizes voice preservation, such as private conversation or broadcast. Define how the system handles withdrawals, including what should happen to future generation and previously produced recordings.

Code-Switching and Mixed-Language Input

A speaker may switch languages within an utterance, for example “Lo siento, I don’t know the word in Spanish.” The Seamless paper describes segment-level language identification for filtering mined training data. Evaluate mixed-language input separately from the model’s coverage of individual languages.

Code-switching can carry social meaning. For example, a bilingual classroom study describes how children use language choice to express social identities. Decide when the translation should preserve a switch and test that behavior on mixed speech. Explicit token-level language labels are one possible design choice.

Content Safety Across Languages

Evaluate safety on the languages and speech directions you intend to support. For each direction, check what reaches the filter: source audio, an ASR transcript, translated text, or synthesized audio. Test how the filter behaves when the transcript contains a recognition error.

A filter that sees only text can act only on the text it receives. Compare the source and synthesized audio with their transcripts when investigating a missed case.

Worked Example: A Full Cascaded Pipeline

We will run each stage of an audio-to-text, text-to-text, and text-to-audio cascade on a small test signal. The input represents four English words and the output uses German tone identifiers. The lookup uses lowercase symbols, such as “guten morgen liebe freunde”. In ordinary written German the phrase is “Guten Morgen, liebe Freunde”. To translate speech, replace the tone recognizer, dictionary, and synthesizer with models for those tasks.

The English source sample rate is 16 kHz. The pipeline will synthesize the German test signal at 24 kHz. Each word is encoded as a quarter-second segment. The fundamental frequency identifies the word, while the relative amplitudes of its harmonics determine the tone's timbre.

PythonIn [15]
CollapseExpand
from math import gcd

import numpy as np
from scipy.signal import resample_poly

word_seconds = 0.25
recognizer_rate = 16_000
source_rate = 16_000
target_rate = 24_000
english_tones = {"good": 120, "morning": 136, "dear": 152, "friends": 168}
german_tones = {"guten": 196, "morgen": 208, "liebe": 220, "freunde": 232}
reference_en = "good morning dear friends"
reference_de = "guten morgen liebe freunde"


def synthesize_tones(text, rate, tones, harmonic_weights):
    samples = round(word_seconds * rate)
    time = np.arange(samples) / rate
    envelope = np.hanning(samples)
    frames = []
    for word in text.split():
        fundamental = tones[word]
        frame = np.zeros(samples)
        for harmonic, weight in enumerate(harmonic_weights, start=1):
            frame += weight * np.sin(2 * np.pi * harmonic * fundamental * time)
        frames.append(envelope * frame / sum(harmonic_weights))
    return np.concatenate(frames)


def resample_waveform(waveform, original_rate, output_rate):
    if original_rate == output_rate:
        return waveform
    factor = gcd(original_rate, output_rate)
    return resample_poly(
        waveform, output_rate // factor, original_rate // factor
    )


source_audio = synthesize_tones(
    reference_en, source_rate, english_tones, (1.0, 0.35, 0.12)
)
ConsoleOut [16]
CollapseExpand
Source samples: 16,000 at 16,000 Hz
Source audio duration: 1.00 s
Source reference: good morning dear friends

The source contains one second of audio. The reference text stays outside the recognizer, so we can compare its output to the expected words.

Stage 1: Recognize the Source Tones

The tone recognizer splits the waveform into known-duration frames, finds the strongest frequency in each, and returns the nearest word identifier. A production recognizer such as Whisper shares the audio-to-text task, but infers words and their boundaries from natural speech.

PythonIn [17]
CollapseExpand
def frame_spectra(waveform, rate):
    frame_samples = round(word_seconds * rate)
    frames = waveform.reshape(-1, frame_samples)
    frequencies = np.fft.rfftfreq(frame_samples, d=1 / rate)
    magnitude = np.abs(np.fft.rfft(frames, axis=1))
    return frequencies, magnitude


def recognize_tones(waveform, rate, tones):
    waveform = resample_waveform(waveform, rate, recognizer_rate)
    frequencies, magnitude = frame_spectra(waveform, recognizer_rate)
    strongest_hz = frequencies[magnitude.argmax(axis=1)]
    words = [
        min(tones, key=lambda word: abs(tones[word] - peak))
        for peak in strongest_hz
    ]
    return " ".join(words)


transcript_en = recognize_tones(source_audio, source_rate, english_tones)
ConsoleOut [18]
CollapseExpand
Recovered source words: good morning dear friends
Match to source reference: True

The FFT recovers the four expected word identifiers. The output string contains no indication of which harmonics accompanied the fundamental.

Stage 2: Machine Translation

A direction-specific model such as English-to-German Opus-MT consumes the transcript and generates a translation. The notebook uses a four-word bilingual dictionary in place of the model. The example phrase was chosen because the word order agrees across the two languages. A real translator needs to select among meanings in context and may reorder or insert words. English-to-German Opus-MT model card

PythonIn [19]
CollapseExpand
word_translation = {
    "good": "guten",
    "morning": "morgen",
    "dear": "liebe",
    "friends": "freunde",
}
translation_de = " ".join(
    word_translation[word] for word in transcript_en.split()
)
ConsoleOut [20]
CollapseExpand
Translator input:  good morning dear friends
Translator output: guten morgen liebe freunde

If a source word is misrecognized, the translation uses the recovered word. It has only the transcript to work with.

Stage 3: Synthesize the Target Tones

A production synthesizer needs to accept the translated text and emit audio at its documented sample rate. The public SpeechT5 checkpoint was fine-tuned on English LibriTTS. For this German example, choose a checkpoint trained or fine-tuned for German. Changing the spelling of the input leaves the model’s training data and learned parameters unchanged.

For the offline example, the German tone inventory supplies the frequencies and a fixed set of harmonic weights gives the target signal its own timbre. The source signal and its harmonic weights are absent from the synthesis call.

PythonIn [21]
CollapseExpand
target_speech = synthesize_tones(
    translation_de, target_rate, german_tones, (1.0, 0.10, 0.42)
)
ConsoleOut [22]
CollapseExpand
Synthesis input: guten morgen liebe freunde
Target samples: 24,000 at 24,000 Hz
Target audio duration: 1.00 s

The generated audio has the same duration as the source because the phrase has four equal-length segments in both tone inventories. The sample counts differ because the signals use different sample rates.

Measuring End-to-End Fidelity

ASR-BLEU scores text recovered from the generated target audio against an independently specified reference. The target recognizer receives the audio and its sample rate. Here, it decodes lowercase German tone identifiers and we compute smoothed sentence BLEU on whitespace-delimited IDs. The printed scores use the fractional 0–1 scale. The later FLEURS benchmark uses the 0–100 scale and a different evaluation protocol.

PythonIn [23]
CollapseExpand
from nltk.translate.bleu_score import SmoothingFunction, sentence_bleu


def evaluate_target_audio(waveform, output_rate, reference, target_recognizer):
    transcript = target_recognizer(waveform, output_rate)
    score = sentence_bleu(
        [reference.split()],
        transcript.split(),
        smoothing_function=SmoothingFunction().method1,
    )
    return transcript, score


def recognize_german(waveform, rate):
    return recognize_tones(waveform, rate, german_tones)


target_transcript, target_bleu = evaluate_target_audio(
    target_speech, target_rate, reference_de, recognize_german
)

altered_audio = synthesize_tones(
    "guten morgen guten freunde", target_rate, german_tones, (1.0, 0.10, 0.42)
)
altered_transcript, altered_bleu = evaluate_target_audio(
    altered_audio, target_rate, reference_de, recognize_german
)
ConsoleOut [24]
CollapseExpand
Decoded target:  guten morgen liebe freunde (1.000 BLEU)
Altered target:  guten morgen guten freunde (0.188 BLEU)
Reference:       guten morgen liebe freunde

Changing the third target tone changes the recovered German transcript and lowers its score. This checks that the metric reads the synthesized audio. With real recognizers, a low ASR-BLEU score can reflect either the translation and synthesis or errors made when recognizing the generated audio.

Analysis: Latency, Speaker, and Prosody

These analyses cover different aspects of the cascade. Latency asks how long a request waits. Timbre and pitch ask what the audio output preserves or changes. A match on the recovered words leaves these other questions open.

Latency Breakdown

To reason about full-utterance latency, add the sequential stage times. The bars below use an illustrative timing budget. Timing the tiny tone functions would describe this code and machine rather than a realistic S2ST system.

PythonIn [25]
CollapseExpand
stage_ms = {"ASR": 120, "MT": 80, "TTS": 180}
total_latency_ms = sum(stage_ms.values())
rtf = (total_latency_ms / 1_000) / (source_audio.size / source_rate)
ConsoleOut [26]
CollapseExpand
Sequential processing budget: 380 ms
Processing time / source duration: 0.38×
VisualizationOut [27]
CollapseExpand
Horizontal bars show assumed ASR, MT, and TTS times of 120, 80, and 180 milliseconds.
Illustrative processing budget for a sequential speech translation cascade. Synthesis receives the largest share in this example. The budget excludes audio collection, buffering, and playback.

A streaming system can overlap the stages as soon as partial results are stable enough to use. User-facing delay then also depends on buffering, commitment policy, and time to the first playable audio. A sequential processing sum cannot answer those questions.

Speaker Similarity Measurement

For real speech, compare embeddings from a speaker encoder validated for the languages and channels in use. Simple acoustic features also respond to content and recording conditions. In the tone fixture, we can measure a simpler feature with a known meaning: the relative amplitude of the first three harmonics in the first segment. Resample both signals to a shared analysis rate using each signal's own original rate.

PythonIn [28]
CollapseExpand
def harmonic_profile(waveform, original_rate, analysis_rate):
    audio = resample_waveform(waveform, original_rate, analysis_rate)
    frequencies, spectrum = frame_spectra(audio, analysis_rate)
    first_frame = spectrum[0]
    fundamental = frequencies[first_frame.argmax()]
    harmonics = fundamental * np.arange(1, 4)
    return np.interp(harmonics, frequencies, first_frame) / first_frame.max()


source_profile = harmonic_profile(source_audio, source_rate, recognizer_rate)
target_profile = harmonic_profile(target_speech, target_rate, recognizer_rate)
profile_cosine = np.dot(source_profile, target_profile) / (
    np.linalg.norm(source_profile) * np.linalg.norm(target_profile)
)
ConsoleOut [29]
CollapseExpand
Source harmonics: [1.   0.35 0.12]
Target harmonics: [1.   0.1  0.42]
Tone profile cosine: 0.934

The source and target profiles differ because synthesis used a new set of harmonic weights. They can still have a high cosine because the fundamental is the largest component of both profiles. This calculation describes synthetic timbre. A speaker-identity comparison requires a speaker encoder and a separate validation protocol.

Prosody Similarity

Use the dominant frequency in each quarter-second segment as the fundamental of our test signal. Compute it using the correct rate for each signal and plot the result against elapsed time. Real speech has variable voicing, duration, and spectral structure, which calls for a pitch tracker and an alignment procedure when comparing across languages.

PythonIn [30]
CollapseExpand
source_hz, source_spectrum = frame_spectra(source_audio, source_rate)
target_hz, target_spectrum = frame_spectra(target_speech, target_rate)
f0_src = source_hz[source_spectrum.argmax(axis=1)]
f0_tgt = target_hz[target_spectrum.argmax(axis=1)]
segment_centers = (np.arange(len(f0_src)) + 0.5) * word_seconds
VisualizationOut [31]
CollapseExpand
Two rising traces on a shared time axis. The four source frequencies span 120 to 168 Hz, and the four target frequencies span 196 to 232 Hz.
Estimated fundamental frequency at the center of each tone segment. The source and target use separate tone inventories, so the synthesized target sits higher on the shared frequency axis.
ConsoleOut [32]
CollapseExpand
Source mean fundamental: 144.0 Hz
Target mean fundamental: 214.0 Hz

The target fundamental frequencies come from the German tone inventory. In this fixture the transcript IDs also identify the original English fundamentals, because each ID has one fixed source frequency. The synthesis stage uses the target inventory and its own harmonic weights. It receives neither the original waveform nor the source harmonic weights.

Limitations & Impact

Multilingual speech input and output have different coverage. A model may recognize a source language and translate it into text without being able to synthesize speech in that language. Meta's published SeamlessM4T v2 coverage therefore reports source speech and target speech separately. Verify the intended direction and output modality before comparing models.

Evaluate translation quality, voice similarity, and latency separately for each supported direction. On FLEURS at the default decision threshold of 0.5, SeamlessStreaming reported 22.1 ASR-BLEU into English with a 2.79-second ending offset. For English into other languages it reported 21.4 ASR-BLEU with a 4.64-second ending offset. The corresponding offline SeamlessM4T v2 scores were 29.7 and 26.1. The ending offset is the time from the end of source speech to the end of translated speech. These results compare two model configurations on one benchmark. SeamlessStreaming, Table 30.

Report what each metric measures. An ASR-BLEU score measures agreement between recognized words and a reference. Ask listeners separately whether the translation preserves politeness, irony, or the relationship between turns when those properties matter.

Speech translation can help people communicate across a language barrier. In high-stakes settings, check the translated words and what a listener will infer from how they are spoken. Decide when trained human interpretation is needed, how to handle uncertainty, and whether the synthesized voice should resemble the original speaker.

A synthetic voice can make a statement sound as if a particular person said it. Obtain consent for the intended use, record provenance, and plan how to handle disputed attribution.

The engineering answer to those risks is not to refuse S2ST but to instrument it. That means:

  • Provenance metadata. Signed C2PA assertions can help associate audio with a generating system when the signed record verifies and its signer is trusted. A detectable watermark can support attribution if the verifier can link it to the system that embedded it.
  • Speaker opt-in for voice preservation with a fallback default voice. The default should be the safer choice, and opt-in should record context and scope.
  • Language-specific quality signals: the system should know when it is out of distribution and report that condition, rather than producing confident-sounding garbage. A confidence score that is calibrated per language is more useful than a single global threshold.
  • Language-specific safety classifiers, not English ones binarized into other languages. Safety is cultural and linguistic, and a classifier that works in English may miss harm in Bengali or Yoruba.
  • Human evaluation on every deployed pair, not just on the pair the paper reported. Coverage claims should be backed by evidence for each pair, not extrapolated from a high-resource benchmark.

Choose cascade or direct models for the intended language direction, using translation quality, available diagnostic outputs, and measured latency. On-device inference can remove a model-serving network round trip. Compare its compute time and first audible output with the remote system on the devices and connections you intend to support.

Summary

  • Speech-to-speech translation (S2ST) conveys the source message in target-language audio. Speaker similarity and prosody are additional targets when the use case calls for them.
  • Cascaded S2ST chains ASR → MT → TTS. The stages can use separate training datasets. If the interfaces expose intermediate text you can inspect it for errors. For a source voice or delivery cue absent from the text, supply a separate conditioning signal. Streaming cascades also need a commitment policy.
  • Direct S2ST takes audio and generates audio with one learned system. Translatotron predicts spectrograms. Translatotron 2 feeds a phoneme decoder's hidden states into a mel-spectrogram synthesizer. S2UT instead predicts discrete target acoustic units from source speech features.
  • Speaker preservation may use a speaker embedding to condition synthesis. In multi-speaker audio, check voice consistency across each speaker’s own turns. Report the encoder and trial conditions, calibrate verification cutoffs on labeled trials, and obtain consent before enabling voice preservation.
  • Prosody preservation can transfer aspects of the source delivery while allowing for target-language contrasts. SeamlessExpressive conditions timing and synthesis on the source. Evaluate speaking rate, pauses, and listener judgments separately.
  • Streaming produces translated output from partial input. Specify the timing origin and endpoint. Time to the first audible output and ending offset answer different questions, and neither is the same as compute time.
  • Evaluation centers on ASR-BLEU (ASR on the synthesized target, BLEU against reference translation), SECS, and human judgment of adequacy, fluency, speaker similarity, and prosody match. No single automatic metric captures all of these, and human evaluation remains necessary for the qualities users notice most.
  • Safety. Obtain scoped opt-in when preserving a speaker’s voice. Use verifiable provenance where the deployment calls for it, and test quality and safety in each language direction you serve, including how the system handles out-of-distribution inputs.

In the next part we pick up where this leaves off, moving from translation specifically to the broader question of how large language models scale up generality in this same data. The same architectural ideas we used here (encoders, discrete decoders, conditioning) reappear throughout Part XXVIII on GPT architectures, where the emphasis shifts from "how do I make a good translation" to "how do I make a model learn general language behavior from raw text."

Quiz

Ready to test your understanding? Take this quick quiz to reinforce what you've learned about speech-to-speech translation.

Speech-to-Speech Translation

Question 1 of 80 of 8 completed
In a cascaded S2ST system, what is the main information-loss weakness described in the chapter?
Join the discussionAsk a question or share what you learned.

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!

A different angle
All writing
Language AI Handbook · Vol. 8

Parallel Data Mining and Quality Control

Mine parallel text from the web, align sentences, filter candidate pairs, and screen for training-evaluation contamination in translation corpora.

53 min read
Language AI Handbook · Vol. 8

Neural Machine Translation

Train a toy encoder-decoder Transformer for machine translation. Compare decoding policies, inspect cross-attention weights, and diagnose NMT failure modes.

49 min read
Language AI Handbook · Vol. 8

Statistical Machine Translation Foundations

Learn how noisy-channel IBM word alignment, EM training, phrase extraction, log-linear scoring, and beam decoding build a statistical machine translation system.

59 min read

About the author

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2026speechspeech, author = {Michael Brenndoerfer}, title = {Speech-to-Speech Translation}, year = {2026}, url = {https://mbrenndoerfer.com/writing/speech-to-speech-translation-cascaded-direct-models}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-12-03} }
APAAcademic
Michael Brenndoerfer (2026). Speech-to-Speech Translation. Retrieved from https://mbrenndoerfer.com/writing/speech-to-speech-translation-cascaded-direct-models
MLAAcademic
Michael Brenndoerfer. "Speech-to-Speech Translation." 2026. Web. December 3, 2026. <https://mbrenndoerfer.com/writing/speech-to-speech-translation-cascaded-direct-models>.
CHICAGOAcademic
Michael Brenndoerfer. "Speech-to-Speech Translation." Accessed December 3, 2026. https://mbrenndoerfer.com/writing/speech-to-speech-translation-cascaded-direct-models.
HARVARDAcademic
Michael Brenndoerfer (2026) 'Speech-to-Speech Translation'. Available at: https://mbrenndoerfer.com/writing/speech-to-speech-translation-cascaded-direct-models (Accessed: December 3, 2026).
SimpleBasic
Michael Brenndoerfer (2026). Speech-to-Speech Translation. https://mbrenndoerfer.com/writing/speech-to-speech-translation-cascaded-direct-models
Newsletter

Stay up to date

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

Unsubscribe at any time. Privacy policy