Speech-to-Speech Translation › Direct (End-to-End) S2ST
Language AI HandbookAll chapters 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
where:
- : the source waveform of samples
- : the target waveform of samples
- : the learned input-to-output mapping, parameterized by . The sample counts and 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
- A linguistic decoder predicts target phonemes. Its hidden states and a shared attention context feed an acoustic synthesizer that generates a target mel-spectrogram.
- 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 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 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]Expand
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]Expand

The following schematic shows Lee et al.'s S2UT inference path, with source mel-filterbank frames entering the speech encoder.
where:
- is the source mel-filterbank sequence. Lee et al. use 80 features per 10 ms frame.
- : the sequence of encoder hidden states
- is the predicted target unit sequence. Its length depends on the target extraction and deduplication settings.
- : 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.
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.
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!