Speech-to-Speech Translation › Latency and Streaming
Language AI HandbookAll chapters 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.
where:
- : the time spent waiting for enough audio to reduce ambiguity
- : the ASR stage delay
- : the MT stage delay
- : the TTS stage delay
- 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 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)
where:
- : the one-based position of the next target token
- : the total number of source tokens
- : the source prefix available before that write
- : the target tokens already generated
- : the number of source tokens the policy initially waits to read if available
For , 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 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.
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]Expand
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]Expand

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:
- Receive source audio in chunks. Choose the interval for the model and latency budget.
- ASR produces partial transcripts per chunk.
- When a sentence boundary is detected (via punctuation prediction from the ASR or a separate segmenter), commit that span to MT.
- MT streams back the translation.
- 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]Expand
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]Expand

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.
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!