Speech-to-Speech and Expressive Voice
Build conversational voice agents from audio to playback: architecture choices, audio tokens, latency budgets, prosody, and voice consent.
Language AI HandbookAll chapters Speech-to-Speech and Expressive Voice
A caller pauses to check a date. If the assistant treats that pause as the end of the turn, it starts answering before hearing the date. If it waits too long after the caller finishes, the gap drags.
This chapter follows a fictional voice request from input audio to playback, then measures which part of the loop caused the delay.
The distinction that organizes everything here is between content, prosody, speaker representation, and streaming behavior. Content is what was said (the words). Prosody is how it was said (pitch, rhythm, stress, timing, loudness, pauses). Speaker representation is who it sounds like (timbre, identity, accent). Streaming behavior is when it was said relative to the listener's clock (latency, overlap, barge-in, turn-taking). A good speech-to-speech agent has to control all four and keep them conceptually separate, because each has its own representation, failure modes, evaluation, and safety surface. Keeping them separate is not just a matter of clean bookkeeping; it is what lets you debug a system that "sounds wrong" by asking a precise question: is the content wrong, is the prosody wrong, is the identity wrong, or is the timing wrong? Those four questions give you separate places to look in the pipeline.
We will build the loop in layers. We start with the architecture choices (cascaded, end-to-end, hybrid), then pull apart the four control axes. We cover the neural vocoders and discrete audio tokens that make generation tractable, then the latency budget that makes the system feel conversational. Then conversation dynamics (barge-in, backchannels, turn detection), the expressive control surface (prosody, emotion, style), and speaker identity as a product constraint rather than a free input. Safety in voice is structurally different from safety in text, and we treat it as a first-class concern rather than an appendix. Throughout, we keep synthetic speakers and waveform features as our working material, and we do not clone any real voice. This is a deliberate methodological choice: every audio signal in this chapter is generated from a sine wave, a chirp, or noise, so you can reproduce every number and plot without downloading a speech corpus, and so the chapter models the right habits for working with voice before you ever touch a real person's recording.
By the end you should be able to reason about a real speech-to-speech deployment: which parts of the pipeline you can let be end-to-end, which parts you must keep inspectable, how to measure latency in a way that matches what users hear, where the expressivity comes from, and how to avoid building a voice-cloning abuse tool by accident.
Two architectural families, and the hybrid in between
Two useful endpoints are a cascade with an explicit text interface and a model that accepts speech and emits speech directly. Hybrid designs can retain both audio-derived and text representations, giving teams an intermediate point between auditability and expressivity.
The cascaded design splits the problem into modules, each of which you have already studied:
A cascade joins automatic speech recognition (ASR), a text dialogue model, and text-to-speech synthesis (TTS). Swapping a compatible component need not retrain the others, though the revised pipeline still needs integration, quality and safety tests.
The end-to-end design treats the entire mapping as one model:
The user-facing exchange can go directly from speech input to speech output while the internals operate on audio tokens or also predict text. Moshi models user and model speech in separate parallel streams and predicts time-aligned text before the related audio tokens. Speech input and output describe the interface.
A hybrid can retain an inspectable text representation and use acoustic tokens for timing and synthesis. The text branch can support logging and review, subject to access and retention policy.
For a text interface the first visible token is one useful boundary. For a voice interface, measure from the end of the user’s speech to the first audible sample, then trace end detection, generation and playout separately.
What each architecture preserves and loses
The transcript exposes what crosses the text interface. It can be inspected or checked by a text policy, subject to the application's privacy rules. An interface that carries only words does not pass the original pitch contour or nonverbal sounds, so the synthesizer makes its own delivery choices.
To compare designs, inspect the representation that crosses each boundary. A text interface carries words, while acoustic features can carry additional signal details.
A speech-native system can expose a synchronized transcript or an auxiliary transcription step for review. Check what that transcript covers and retain timing with it. A text log alone cannot audit the generated waveform.
A hybrid can hand synthesis an audio representation in addition to the words. Which detail survives depends on the representation and on what the receiving module uses. Which representations remain available for review depends on what each stage records.
Discrete audio representations for language modeling
Discrete codes give an audio language model a finite vocabulary. A transformer can also consume continuous audio features. The choice here is about prediction targets and the interfaces between stages.
Acoustic tokens from a neural audio codec. A codec can learn to compress speech into discrete codes and decode them back to audio. EnCodec is a streaming encoder–decoder with quantized latents. Frame rates and the number of codebooks depend on the codec and configuration.
Speech features with learned targets. HuBERT uses offline clustering to obtain targets for its masked prediction objective. In a separate use, a system can cluster learned hidden states to build a discrete input representation. The resulting codes are acoustic representations and can retain information beyond the words.
A text backbone plus acoustic tokens. The practical hybrid: transcribe to text for quality and safety, then predict acoustic tokens for the audio output, sometimes conditioned on a text representation and a speaker embedding. This lets the LM see clean text as the "meaning" and acoustic tokens as the "sound," with a learned mapping between them.
If a configured codec emits 50 frames per second, ten seconds produces 500 frame positions. Several quantizer codes can belong to each frame. Model compute depends on whether it predicts those codes in parallel or as separate autoregressive steps.
We’ll quantize a feature from a synthetic chirp plus noise. The example encodes log power by frequency band and decodes those feature values. A neural codec can also learn a decoder for audio.
PythonIn [3]Expand
import numpy as np
rng = np.random.default_rng(7)
SR = 16000
duration_s = 1.0
t = np.arange(int(SR * duration_s)) / SR
# A chirp that sweeps from 300 Hz to 1200 Hz over the sample
f0, f1 = 300.0, 1200.0
phase = 2 * np.pi * (f0 * t + (f1 - f0) / (2 * duration_s) * t**2)
chirp = 0.6 * np.sin(phase)
noise = 0.05 * rng.standard_normal(t.shape)
waveform = chirp + noiseChoose a window length and a hop. At 16 kHz, the 320-sample window spans 20 ms and the 160-sample hop advances 10 ms. That makes 100 frame positions per second in a continuing stream, each holding eight scalar codes in this example.
PythonIn [4]Expand
frame_len = 320 # 20 ms at 16 kHz
hop = 160 # 10 ms
n_frames = 1 + (len(waveform) - frame_len) // hop
# Frame the waveform
frames = np.stack(
[waveform[i * hop : i * hop + frame_len] for i in range(n_frames)]
)
# The 320-sample rFFT gives 161 nonnegative bins spaced 50 Hz apart.
# Split them by index into one 21-bin group and seven 20-bin groups.
n_bands = 8
spectrum = np.fft.rfft(frames * np.hanning(frame_len), axis=1)
bands = np.array_split(np.arange(spectrum.shape[1]), n_bands)
energy = np.stack(
[
np.log(np.mean(np.abs(spectrum[:, bins]) ** 2, axis=1) + 1e-8)
for bins in bands
],
axis=1,
)
# Each band uses a separate 16-level scalar quantizer.
qmin, qmax = energy.min(axis=0), energy.max(axis=0)
scale = (qmax - qmin) / 15
safe_scale = np.where(scale > 0, scale, 1.0)
tokens = np.clip(np.rint((energy - qmin) / safe_scale), 0, 15).astype(int)ConsoleOut [5]Expand
n_frames: 99 codebook size: 16 token stream shape: (99, 8) first 3 frames, all bands: [[15, 1, 6, 6, 6, 12, 6, 8], [15, 1, 12, 7, 11, 7, 4, 4], [15, 0, 8, 10, 6, 9, 7, 12]]
A complete frame starts every 10 ms, giving 99 frames for this signal and framing rule. Each frame carries one level from 0 through 15 per band. The scale and minimum are needed to interpret the tokens. This fixture estimates them from the signal, so it does not demonstrate compression on unseen data.
Decode the integer level back to log power in each band. A nearest-level decoder has at most half a quantization step of error for values within the fitted range. The stored mean power cannot recover the frequencies or phases within a band.
PythonIn [6]Expand
energy_recon = qmin + tokens * scale
frame_times = (np.arange(n_frames) * hop + frame_len / 2) / SR
band = 0VisualizationOut [7]Expand

The decoded figure follows the coarse change in the lowest band's energy. It compares features instead of reconstructing a waveform. An audio codec has a waveform decoder and must be tested separately for intelligibility, sound quality and other deployment targets.
At this point we have the machinery to discuss timing.
The latency budget of a conversational speech agent
Three measurements help locate a delay in a voice interaction.
- End-of-turn detection delay. How long after the user stops talking the system decides the user is done.
- Time to first audio byte (TTFAB). Measure when the first audio bytes reach a named boundary. Separately measure when the first sample plays. State whether the clock starts at the true end of the user's speech or at the detector's decision.
- Real-time factor (RTF). The ratio of processing time to audio duration for the rest of the response.
A short silence threshold may cut off users who pause within a sentence. A longer threshold makes the detector wait longer after a complete turn. Measure both outcomes on the users, languages and noise conditions the product supports.
The end-of-turn threshold is a single number that controls two competing failures: cutting the user off (a false end-of-turn) and adding dead air to every turn. Two quantities summarize the tradeoff:
- False-cutoff rate: the fraction of utterances where an intra-sentence pause exceeds the threshold.
- Added dead air: the wait introduced after a clean end of turn.
We can make that tradeoff explicit by sweeping the threshold and counting, over a simulated set of utterances with mid-sentence pauses, how often we cut in and how much delay we add.
We simulate utterances as a sequence of speech spans separated by intra-utterance pauses drawn from a fixed distribution. The end-of-turn rule is: declare the turn over when the observed silence exceeds the threshold. A pause above the threshold counts as a false cutoff; the final silence is a true cutoff. All sampling uses default_rng(11) so the numbers reproduce exactly.
PythonIn [8]Expand
rng_eot = np.random.default_rng(11)
n_utt = 4000
# Each utterance has 1-4 mid-sentence pauses; the last gap is the true end.
n_pauses = rng_eot.integers(1, 5, size=n_utt)
pause_seconds = rng_eot.gamma(shape=2.0, scale=0.18, size=n_pauses.sum())
thresholds_ms = np.arange(100, 1001, 25)
false_cutoff_rate = []
mean_added_delay_ms = []
idx = 0
per_utt_pauses = []
for k in n_pauses:
per_utt_pauses.append(pause_seconds[idx : idx + k])
idx += k
for thr in thresholds_ms:
cut = 0
for pauses in per_utt_pauses:
# A pause longer than the threshold triggers a premature end-of-turn.
if np.any(pauses > thr / 1000.0):
cut += 1
false_cutoff_rate.append(cut / n_utt)
# Added dead air on a clean turn is just the threshold itself.
mean_added_delay_ms.append(float(thr))
false_cutoff_rate = np.array(false_cutoff_rate)
mean_added_delay_ms = np.array(mean_added_delay_ms)VisualizationOut [9]Expand

In the generated sample, a 200 ms rule cuts off about 89% of utterances and a 700 ms rule cuts off about 22%. A cutoff means that at least one mid-turn pause exceeds the threshold. The threshold equals the added wait after a clean end under this toy rule. More cues may help, so compare them with the threshold rule on the same examples.
A cascade can overlap recognition, text generation and synthesis when its modules accept partial inputs. Partial transcripts can change before commitment. Measure actual first audio time after any buffering and keep the endpoint policy explicit.
Real-time factor divides wall-clock generation time by audio duration. A factor of 0.1 means a generator produces ten seconds of audio per second in the stated measurement interval. Streaming playback and generation may overlap. A low average factor can still hide a late chunk, so record individual playout deadlines.
The following code computes these numbers for a toy streamed response so you can see how they compose. We'll model the audio production as a sequence of chunks arriving at fixed wall-clock intervals.
PythonIn [10]Expand
# All times use the true end of the user's speech as zero.
chunk_audio_ms = 300
n_chunks = 40
eot_detection_ms = 400
first_ready_after_detection_ms = 600
startup_buffer_ms = 400
processing_ms_per_chunk = 80
first_ready_ms = eot_detection_ms + first_ready_after_detection_ms
arrival_ms = first_ready_ms + np.arange(n_chunks) * processing_ms_per_chunk
playout_ms = (
first_ready_ms + startup_buffer_ms + np.arange(n_chunks) * chunk_audio_ms
)
margins = (playout_ms - arrival_ms) / 1000
on_time = arrival_ms <= playout_msConsoleOut [11]Expand
Chunks on time: 40/40 Audio duration: 12.00 s First playable sample after the true end: 1.40 s Last chunk ready after the true end: 4.12 s Playback ends after the true end: 13.40 s Generation RTF after first chunk: 0.27
The first chunk's arrival completes at 1.00 s and it plays at 1.40 s after the 400 ms startup buffer. All 40 chunks meet their deadlines. The last chunk is ready (arrival complete) at 4.12 s, while playback of the 12-second response finishes at 13.40 s.
VisualizationOut [12]Expand

The initial margin is the 0.40 s startup buffer. Each deadline advances by 0.30 s and each arrival advances by 0.08 s, adding 0.22 s of margin per chunk. A negative margin would indicate a missed playout deadline.
Measure first audio from the same starting event when comparing systems. A favorable model-generation number can coexist with a long gap at the listener if a detector waits for silence or the player buffers before starting.
Turn-taking, barge-in, and backchannels
A caller can talk over playback or acknowledge an answer with a short sound. Handle overlap at the interaction layer. Overlapping input and output streams are possible, as the Moshi example illustrates.
Three failures to guard against:
- Barge-in. The user starts talking while the agent is still speaking. The agent must stop producing audio without losing its place in the conversation. This requires the agent to be able to cancel its queued audio, recover whatever it had said, and resume context-aware on the new input. The hard part is the "recover its place" step: the agent needs to know what portion of its planned utterance actually reached the user's ears before the interruption, because responding to "what did you mean by that" requires knowing what "that" referred to.
- Incoming backchannels. A short acknowledgment can mean the user wants the agent to continue. Evaluate that outcome separately from an interruption that should stop playback.
- Outgoing backchannels. An agent may acknowledge a long user turn. Evaluate the timing and whether the acknowledgment masks the user's ongoing speech or signals that the agent is taking the turn.
A duration threshold is a baseline. A turn detector can combine pause duration with recent audio and partial transcripts. Compare premature endings and decision delay across the languages and noise conditions you support.
Evaluate turn detection and barge-in separately from content quality. A lower word error rate can coexist with premature cutoffs or playback continuing over the user.
Where expressivity lives
Prosody is the set of features that carry how a thing is said rather than what is said. In practice, for a neural system, prosody decomposes into:
- Pitch contour (fundamental frequency over time), including range, contour shape, and declination.
- Energy contour, including stress placement and dynamic range.
- Timing, including segment durations, pauses, and speech rate.
- Voice quality, including breathiness, creak, and glottal features.
Emotion is a coarser label that correlates with these features. In TTS this is usually modeled as style control. Modern systems offer several mechanisms:
- Style from a reference. Some synthesizers use a representation of how a reference sounds. Check separately whether it carries information about who spoke, and use approved synthetic examples for evaluation.
- Style tag conditioning. Choose a supported label such as warm or serious. Measure how listeners perceive the resulting delivery.
- Prosody conditioning. Give the synthesis stage a pitch, level or timing target where its interface supports one.
- Level and duration. Expose these controls directly when they cover the user's request.
Reference-based control brings a separate identity question. Check whether the reference can alter recognizability, and keep authorization independent of the acoustic control.
We can look at prosody as a numerical input rather than a stylistic adjective. The code below constructs illustrative pitch and level arrays. A prosody-controlled synthesizer could use arrays like these as targets.
PythonIn [13]Expand
# Build a 2-second voiced segment with a deliberate prosodic shape:
# a fall over the first clause, a pause, then a rise before the final word.
seg_len = 200 # frames at 10 ms hop
t_seg = np.arange(seg_len) * 0.01
# Pitch: Hz, base 180 with a fall to 110, then a rise to 220
pitch = np.empty(seg_len)
early = t_seg < 1.0
pitch[early] = 180 - 70 * (t_seg[early] / 1.0)
pause = (t_seg >= 1.0) & (t_seg < 1.3)
pitch[pause] = np.nan
late = t_seg >= 1.3
pitch[late] = 160 + 60 * ((t_seg[late] - 1.3) / 0.7)
# Loudness in dB: louder at the start, softer in the phrase end, back up for the rise
loudness = (
60 + 4 * np.sin(np.linspace(0, np.pi, seg_len)) - 6 * pause.astype(float)
)ConsoleOut [14]Expand
first-frame pitch (Hz): 180.0 Pause frames without defined pitch: 30 last-frame pitch (Hz): 219.1 pitch range (Hz): 108.4
The pitch range summarizes this contour. It does not identify an emotion. Prosody controls describe the intended movement of the signal; judge the perceived delivery separately and report what the listeners rated.
VisualizationOut [15]Expand

VisualizationOut [16]Expand

Emotion as a categorical label is a leaky abstraction
A label such as warm is easier to request than a pitch curve. Listeners can disagree about what warm sounds like. Pair style labels with measurable changes in pitch, level or timing, and check the delivered effect with listeners.
Even with similar prosody, voices can sound different in timbre and articulation. A speaker representation can retain information useful for comparing identity. Its similarity score still depends on the examples and evaluation setup.
Speaker identity and voice consent
A speaker embedding maps an utterance to a fixed-length comparison vector. The ECAPA-TDNN paper describes fixed-length speaker representations based on pooling variable-length utterances. Similarity can support a decision in an evaluated setting. It cannot establish consent.
A product can offer fixed synthetic identities, a separately authorized voice, or an unrestricted reference input. The choice determines which authorization checks it needs.
- Fixed, licensed synthetic voice(s). The product ships with one or more synthetic voices created with consent. Users can pick among them, tune prosody, and adjust speed. No reference audio from users is used for identity.
- User-approved voice. A product that offers user-specific identity needs a documented authorization process, a way to withdraw authorization, and enforcement at use time.
- Unrestricted voice references. Free-form reference input can raise impersonation and authorization risks. The worked example uses oscillator fixtures without reference recordings.
The next example compares features from synthetic oscillator fixtures. It produces no voice output and establishes no person's identity or consent.
PythonIn [17]Expand
# A toy "speaker embedding" for demonstration: the mean and std of frame-level
# features over an utterance. Real systems use x-vectors or ECAPA-TDNN.
def toy_speaker_embedding(frames):
return np.concatenate(
[
np.mean(frames, axis=0),
np.std(frames, axis=0),
]
)
# Generate a fixed-frequency sine tone plus noise for each synthetic clip.
def make_utt(base_freq, dur=0.8):
t_local = np.arange(int(SR * dur)) / SR
phase_local = 2 * np.pi * base_freq * t_local
wav = 0.5 * np.sin(phase_local) + 0.03 * rng.standard_normal(len(t_local))
n_f = 1 + (len(wav) - frame_len) // hop
fr = np.stack([wav[i * hop : i * hop + frame_len] for i in range(n_f)])
return toy_speaker_embedding(fr)
emb_a1 = make_utt(220.0)
emb_a2 = make_utt(225.0) # nearby tone in oscillator profile A
emb_b = make_utt(400.0) # oscillator profile BPythonIn [18]Expand
def cosine(u, v):
return float(u @ v / (np.linalg.norm(u) * np.linalg.norm(v) + 1e-12))
sim_same = cosine(emb_a1, emb_a2)
sim_diff = cosine(emb_a1, emb_b)ConsoleOut [19]Expand
within-profile similarity: 1.000 between-profile similarity: 0.087 decision (threshold 0.8): accept
Run the cells in order so the earlier chirp initializes the random generator used for the tone noise. The threshold separates only these two synthetic pairs. A real verification study needs held-out comparison pairs and separately recorded authorization.
Choose approved synthetic voices for general use. If a product accepts an identity-bearing reference, verify its separately recorded authorization and enforce that check before use. Speaker similarity, a watermark and a consent record answer different questions.
See the later section on multimodal safety for provenance and consent evaluation. Within this chapter, a reference is acoustic data. A separate record supplies authority to use it.
A minimal cascaded speech-to-speech loop
This cascade converts a synthetic waveform to integer level summaries, computes alternating response values, and renders them as synthetic tones. The input values summarize frame energy and the response values set tone frequency.
The SyntheticASR groups complete analysis frames, discards low-level groups and returns rounded level values. A clip shorter than the 320-sample analysis frame returns an empty sequence. ToyDialog uses the count of input values. SyntheticTTS then renders one constant-frequency tone segment per response value.
PythonIn [20]Expand
class SyntheticASR:
"""Summarize rounded RMS levels for groups of frames above the threshold."""
def __init__(self, sr=SR, frame_len=frame_len, hop=hop):
self.sr, self.frame_len, self.hop = sr, frame_len, hop
def transcribe(self, waveform):
if len(waveform) < self.frame_len:
return []
n_f = 1 + (len(waveform) - self.frame_len) // self.hop
frames = np.stack(
[
waveform[i * self.hop : i * self.hop + self.frame_len]
for i in range(n_f)
]
)
rms = np.sqrt(np.mean(frames**2, axis=1))
# Start one group every 100 ms and keep only groups above the threshold.
tokens = []
for i in range(0, n_f, 10):
chunk_rms = rms[i : i + 10].mean()
if chunk_rms > 0.05:
tokens.append(int(round(chunk_rms * 100)))
return tokens
class ToyDialog:
"""Produces a response 'token' sequence from the input tokens."""
def respond(self, input_tokens):
# Append two positions to the input length.
n = len(input_tokens) + 2
# Alternating high/low values to look like varied intonation
return [80 + 40 * (i % 2) for i in range(n)]
class SyntheticTTS:
"""Render one constant-frequency tone per response value."""
def __init__(self, sr=SR):
self.sr = sr
def synthesize(self, token_seq, token_dur_s=0.10):
# Each token renders to `token_dur_s` of audio; value drives center freq
out = []
for v in token_seq:
n = int(self.sr * token_dur_s)
tt = np.arange(n) / self.sr
f = 200 + 3 * v # token value to center frequency
out.append(0.3 * np.sin(2 * np.pi * f * tt))
return np.concatenate(out) if out else np.zeros(0)
asr = SyntheticASR()
dialog = ToyDialog()
tts = SyntheticTTS()
in_tokens = asr.transcribe(waveform)
out_tokens = dialog.respond(in_tokens)
response_token_duration_s = 0.10
response_waveform = tts.synthesize(out_tokens, response_token_duration_s)ConsoleOut [21]Expand
input 'transcript' tokens: 10 response 'transcript' tokens: 12 response audio duration: 1.20 s
Ten input values give twelve response values under the toy dialog rule. Each response value renders 0.10 s of audio, giving 1.20 s in all. The stages run locally in sequence. The earlier chunk example shows how a deployment can schedule work and playback.
The top row shows the input waveform and its rounded level values. The lower-left panel gives the full response schedule. The lower-right panel zooms in around 0.10 s so you can see the two successive tone frequencies.
VisualizationOut [22]Expand

The dialog explicitly creates alternating high and low symbols. The synthesizer maps them to alternating tone frequencies. In the real text cascade the synthesizer derives its delivery from the response text and any additional controls the interface carries.
Key Parameters
The key parameters for this speech-to-speech pipeline are:
- frame_len and hop. These set analysis-window duration and frame-position rate. The 10 ms hop gives 100 positions per second before the finite-signal boundary.
- n_bands. Eight contiguous frequency groups give eight scalar codes per complete frame.
- Quantization levels. The toy maps each group's log power to one of 16 evenly spaced levels. At a fixed range, more levels reduce the rounding step.
- eot_detection_ms. The synthetic trace adds this fixed wait before first-chunk generation. In the earlier sweep, varying the silence threshold changes false cutoffs and wait.
- First audio. The trace records first chunk ready at 1.00 s and first scheduled playback at 1.40 s on the same clock.
- processing_ms_per_chunk. Compare sustained wall-clock generation to audio duration and inspect individual arrival margins. The example takes 80 ms for each 300 ms audio chunk after the first.
Streaming multimodal interaction and the next generation
Streaming is the axis that separates speech-to-speech from what is essentially "record then play back." A streaming system:
- Processes frames or chunks as they become available.
- Runs an ASR (or the end-to-end model) with a streaming state that it maintains across frames.
- Emits output tokens incrementally as the LLM (or the end-to-end model) continues to generate.
- Synthesizes audio in chunks that can be played out immediately.
A streaming interface needs incremental state, output scheduling and a buffer policy. Some models already support these interfaces. If a component expects a whole utterance, measure the added wait before assuming it can be streamed.
For a speech-to-speech chapter, the key facts are:
- A batch component can require the full input before producing useful output. Buffering and component design determine the wait.
- A streaming component can retain state across chunks. Check how much future context it waits for and how quickly it can commit output.
- The player must be able to cancel queued audio. Test what the next response can observe about which prefix actually played.
Evaluating a speech-to-speech system
You cannot evaluate a speech-to-speech system with a single number. At minimum, treat these as separate evaluation surfaces:
- Content accuracy: WER of the ASR stage, or end-to-end semantic equivalence of the produced response to a reference. For a cascaded system, measure the ASR and LLM separately plus the TTS intelligibility.
- Prosody and naturalness: mean opinion score (MOS) on samples from the deployed configuration, partitioned by style tag and by speaker. Naturalness scores are strongly configuration-dependent.
- Speaker identity: for fixed voices, whether the output matches the target speaker embedding. For user-trained voices, whether the output would pass a same-speaker test relative to the user's reference.
- Latency: TTFAB, EoT delay, streaming RTF, and timestamp alignment. Report all four; any single one misleads.
- Safety: how the system behaves on requests to synthesize in a third party's voice, on requests involving impersonated public figures, on coercion scenarios. Evaluate authorization and denial with synthetic identity and consent fixtures, separately from ordinary recognition or naturalness scores.
A mean opinion score summarizes the ratings that were collected. Report the rating conditions, number of observations and how listeners and utterances were sampled. For response delay, state the time origin and collect the audible playback timestamps.
Each of the four content, prosody, identity, and latency surfaces can pass while another fails, so a headline score should always be reported next to the surface it summarizes.
Automatic scores can help identify failures in a specific component. Use transcripts for content checks, timed playback traces for interaction, and listening judgments for perceptual quality. VoiceBench includes variation in speakers, environment and content.
The plot models uncertainty in one mean under independent ratings and a fixed standard deviation of 0.7 points. A study comparing two systems needs uncertainty for the difference, with pairing or rater clustering handled explicitly.
PythonIn [23]Expand
# Use 0.7 points as the fixed standard deviation for this illustration.
mos_sd = 0.7
n_ratings = np.array([10, 20, 30, 50, 100, 200, 400, 800, 1600])
# 95% half-width of the mean is 1.96 * sd / sqrt(n)
mos_half_width = 1.96 * mos_sd / np.sqrt(n_ratings)VisualizationOut [24]Expand

At 30 independent ratings, this normal approximation gives a half-width of about 0.25 points. At 100 it gives about 0.137 points. Clustering by rater or item changes the uncertainty, so report how the ratings were collected.
A correct response can differ from a reference in wording, duration or delivery. Use content references where appropriate and check perceptual quality, authorization and timing using their own measurements.
Limitations and impact
A component score cannot establish that the complete voice loop works across accents, overlapping speech, background noise, or technical language. Evaluate each deployed stage and the joint interaction under conditions that matter to users. Both cascaded and speech-native systems need a plan for auditing their outputs.
Reference-driven voices introduce the risk of misuse of a recognizable identity. Test the product’s authorization and revocation workflow with synthetic identities, and treat media detection as a separate measurement.
Set latency targets for the interaction and run the complete loop on the target hardware and network. A component can have a low generation factor while users still hear a long delay caused by endpoint detection, transport, or buffering.
For cross-system comparisons, report microphones, background conditions, hardware and network settings, and how the human study was sampled. Each affects how readily another team can interpret the measurements.
Summary
Speech-to-speech is the loop that turns audio into audio with a conversational agent in between, and its quality is governed by content, prosody, speaker identity, and streaming behavior treated as separate axes. Three architectural families exist (cascaded, end-to-end, hybrid) and each trades auditability against expressivity. Discrete audio representations (neural codec tokens, semantic tokens, hybrids) let a language model operate on audio even when the waveform is not directly predicted. The latency budget (EoT delay, TTFAB, streaming RTF) is tight and constrains every design decision. Turn-taking, barge-in, and backchannels need explicit machinery. Prosody decomposes into pitch, energy, timing, and voice quality, and expressive control can be delivered by tags, by explicit prosody trajectories, or by reference audio, with different safety profiles. Speaker identity is a consent-controlled product property, not a free input; free-form voice cloning is a separate product with recognizable harms. A real deployment needs a plan for each of these axes, evaluated separately. The composition remains an open systems problem, and the safety portions belong in Part LX: Safety and Security.
Build the interaction test around one clock. Measure when the user actually finishes, when the detector commits and when the response becomes audible.
Quiz
Speech-to-Speech and Expressive Voice
Join the discussionAsk a question or share what you learned.
Keep exploring
Reference
Citation details
Cite or share this article.


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!