Streaming Multimodal Interaction
Build streaming multimodal systems with chunking, endpointing, barge-in, and latency metrics. Learn to trace timing across client, server, and model.
Language AI HandbookAll chapters Streaming Multimodal Interaction
You point at Tuesday on a calendar and say, “Let’s meet there.” The assistant starts reading the wrong time. You say “Wait” while its next words are already in the speaker buffer. For the interaction to recover, the system has to align the pointing with the spoken reference, recognize the interruption, and stop playing the old answer. Fast decoding by itself solves none of those timing problems.
We will follow the events needed to describe that interaction. The executable trace is synthetic and runs locally. Its timestamps distinguish when the model starts generating, when a user first hears the answer, and when canceled audio actually stops.
Why Streaming Is Structurally Different
A request-response system can wait for a complete input before starting work. A streaming controller sees only the audio, video and text received so far. It can revise a tentative transcript and extend a visible reply, or choose when to commit a word or execute a requested action. Words already heard cannot be taken back. A correction after playout is another event.
For an observation chunk and the previous state , a causal policy can express its update as
Here is the updated state, is the controller's next action, and is an optional newly produced output chunk. The state can include recent media, a provisional transcript, the current generation identifier and what has already played. The expression abstracts asynchronous work. It says that the next action depends on observations available so far, not on observations that arrive later.
An endpoint decision is one commitment. The same spoken prefix may be complete in one turn and incomplete in the next. A provisional transcript can help predict a turn boundary. A controller still needs a rule for when evidence is sufficient and what happens if newer evidence changes the decision.
The Streaming Pipeline
Capture produces timestamped chunks. A media front end may combine microphone frames, a running transcript and detections from video. The controller then commits to an action, such as waiting, starting a response, or invalidating part of the output queue. The model and renderer run on possibly different timing boundaries.
A useful trace includes the event timestamp, the clock used to measure it, the turn or generation it belongs to, and whether it denotes observation, computation, schedule or actual playback. These distinctions matter when a user stops speaking on a client clock and the server later receives the corresponding frame. An arrival timestamp includes transport and queue delay. An event time describes when the underlying observation occurred, within the accuracy of the measurement.
Chunking and the Ring Buffer
A ring buffer retains a bounded recent window. When a detector confirms speech after it begins, the buffer can supply earlier samples to the recognizer if that span is still present. Longer retention increases memory and, for sensitive input, the data that may be accessible. Smaller chunks can reduce accumulation delay at a fixed sample rate. The best operating point depends on scheduling overhead, the encoder and any lookahead.
A simple buffer calculation connects chunking to implementation. For mono PCM at 16,000 samples per second and two bytes per sample, 320 ms represents 5,120 samples, or 10,240 raw bytes. At a 20 ms hop, that is 16 hops. An implementation needs room for the corresponding audio plus any metadata, indices and copies handed downstream. With multiple channels supplied at the same per-channel rate, multiply the payload by the number of channels.
Consider a recognizer that needs 100 ms of pre-roll and a detector that waits an additional 60 ms before committing. The needed 160 ms span must still be present when the recognizer reads it. Measure the age of the oldest captured frame at dispatch. The difference between nominal and effective retention can grow under load when frame production outruns a stalled consumer.
When observations consistently arrive faster than they can be processed, an unbounded first-in, first-out queue leaves newer observations waiting progressively longer. A bounded queue needs a policy for dropping frames and state. A system might preserve the audio needed to finish the current turn while retaining only the latest frame used to query a live display. Test this on a short interruption after a queue stall. The trace should reveal whether the system acted on a newly arrived packet carrying an older observation or on new captured data.
Voice Activity and Endpointing
Voice activity marks evidence of speech in individual frames. Endpointing decides whether enough evidence exists to commit to the end of the turn. A pause can occur inside a turn. A backchannel can overlap the assistant without requesting a stop. Jitter and detector delays also change when a boundary is noticed. Record the annotation rule for real turn ends when using them as an evaluation reference.
Continuous Perception
Audio and video can arrive with different cadence, delay and clocks. A single-device fixture can place both on one monotonic time line. A networked system needs clock alignment or a link between capture-time estimates, and it should report the tolerance it uses to associate events. RTP specifies separate media timestamp clocks and uses RTCP sender reports to relate them to a common wall-clock time.
A short raw buffer can support a revised transcript or a closer look at a recent gesture. Longer-lived state can remember confirmed references or bounded summaries. When a late frame conflicts with a committed reference, the revised state may trigger a visible correction. Treat changing an answer on screen and committing an external action as distinct operations with their own authorization and timing rules.
For synchronized clocks, a system can match a gesture timestamp to a spoken reference at within a declared tolerance. A match at the boundary might flip if either estimate shifts by a few milliseconds. One practical way to report that is to retain an uncertainty interval for each timestamp. If the latest possible gesture precedes the earliest possible speech reference, their order is observable. If the intervals overlap, a system can preserve both candidate orders until another observation resolves the ambiguity. This rule uses capture-time bounds rather than the order in which packets arrived.
For a numerical alignment example, suppose the pointing event lies in 118–126 ms after clock alignment, and the reference word “there” lies in 145–151 ms. The pointing precedes the reference and the possible separation ranges from 19 to 33 ms. The pair consistently meets a 40 ms association rule. At 30 ms, the available bounds leave membership ambiguous. A controller can keep two candidate references until the next observation resolves the ambiguity. Log the source timestamps and aligned intervals so reviewers can tell whether a disagreement came from the observations or the estimate of clock alignment.
Test gaps as well as jitter. If the latest video observation falls outside the association window, mark that modality stale. A late frame can also change the detected referent while text is decoding. A draft on a screen can be edited. With audio, the correction enters the timeline as another utterance. An audit of alignment should record when a change became available and when it was actually communicated.
The example below puts transcript updates and a synthetic calendar gesture on one clock. It records when the detector reports the gesture and when the assistant’s useful phrase finishes playing. To test word–gesture matching, we would also need timestamps for the referent word and a rule that associates it with the gesture.
Turn-Taking as a Decision Problem
Treat speech onset, interruption detection and endpoint commitment as separate events. Speech onset can be annotated from recorded audio. A detector responds later when sufficient evidence has arrived. An output controller can then cancel an in-progress generation or yield after a deliberate, task-specific transition. Measure the boundary you claim to improve.
A backchannel can be evidence of engagement while another participant still holds the floor. Test that case along with pauses, delayed corrections and explicit interruption. TurnGPT gives a text-based example of using dialogue context to predict turn shifts. An acoustic signal may answer a different question, such as whether sound consistent with speech is present in a window.
Evaluate cases where the same short utterance has different roles. An overlapped “mm-hm” can signal agreement in one context and a request to pause in another. A model can localize the onset in both cases while making different errors about the intended floor change. One test labels speech activity and floor change separately. A second measures response time after a qualifying floor change. Counting all detected speech as interruption would reward fast responses to the wrong event.
For a provisional endpoint, the controller can prepare a response while postponing playback. Measure decision time, first useful audio and premature-playback exposure together. On input that resumes shortly after a pause, a system can cancel internal preparation before sending anything to the player. That action still consumes resources. Pair the user-facing latency with a count of the discarded decoding work to understand the cost of acting provisionally.
Proactive Responses
A system may speak without an explicit new request, for example to ask whether a gesture refers to the currently highlighted item. Its expected benefit depends on the evidence and the cost of interrupting. A simple policy can choose to speak only when expected benefit exceeds those costs. Compare that rule on annotated cases where offering assistance helps, where waiting helps, and where speaking would be distracting. Evaluate the policy with unclear references as well as clean turns.
Barge-in
Barge-in is an attempt to take the floor while the assistant is already producing output. Plan which part of the pipeline can stop immediately. An in-flight inference call may acknowledge cancellation while a player still holds committed audio. Some players can discard queued material. Sound already played is outside the scope of cancellation.
Latency: The Metric We Actually Care About
Choose a start and stop event for each measurement. TTFT in the example is model prefill start to first decoded token. A user-facing time to first audio starts at the annotated end of the user turn and ends when output becomes audible. Time to first useful response ends when the first annotated helpful unit becomes available to the user. For a voice exchange, the useful unit can span multiple words, so a token timestamp alone does not establish that time.
Keep the rate of completed useful responses next to the latency distribution. A trial that never produces useful output has no observed time to that output. Report the no-response count separately and state whether a deadline censors a trial. Reporting only the fastest successful turns can hide a policy that drops difficult ones.
For an interruption, distinguish when the detector fires, when the player invalidates the old generation, when a cancellation is acknowledged, and when playback stops. The example measures onset to audible stop, invalidation to audible stop, and cancel request to acknowledgment. These intervals overlap. Adding them would count some time twice.
Duplex Generation
Streaming input and output can run concurrently at the transport layer even when the model decides in turns. A duplex conversational model can use new input while generating its ongoing response. It can change subsequent output, with a delay determined by its media frame, encoder, generation and playback boundaries. Already played content remains part of the interaction.
Moshi models the user's speech and its own speech in parallel streams. It is an example of a model design that incorporates interaction timing. A deployment can also implement interruption with a front-end detector and an explicit control protocol, even if its generator produces one response at a time. Reporting which mechanism was used prevents a playback cancellation feature from being confused with model-level conditioning.
A Worked Example: A Local Trace
The trace uses integer milliseconds on a synthetic common clock. Turn 1 includes a pause, a revised transcript and a detected point toward Tuesday. Turn 2 begins while the assistant is still playing audio from generation 7. Event identifiers make it possible to pair the interruption with the correct audio and cancellation acknowledgment. In this fixture, the player invalidates generation 7 at the same recorded millisecond as interrupt detection. Separate events let the trace measure the player boundary even if a real controller invalidates later.
Setup and Event Schema
Some events use an input turn alone. Output and cancellation events carry the applicable generation ID. The first useful audio is annotated at the completion of the useful phrase. That event is part of the fixture, so the metric can be reproduced without a speech recognizer or subjective text heuristic.
PythonIn [3]Expand
from dataclasses import dataclass
from math import ceil
import numpy as np
@dataclass(frozen=True)
class Event:
t_ms: int
kind: str
channel: str
turn: int | None = None
generation: int | None = None
payload: int | str | None = None
def build_trace():
return [
Event(0, "capture_start", "control"),
Event(1000, "speech_onset", "input audio", 1),
Event(1510, "partial_transcript", "input text", 1, payload="Meet at"),
Event(1710, "pause_start", "input audio", 1),
Event(2110, "speech_resumes", "input audio", 1),
Event(
2160,
"point_detected",
"input video",
1,
payload="Tuesday on the calendar",
),
Event(2400, "speech_end_annotated", "input audio", 1),
Event(
2520,
"final_transcript",
"input text",
1,
payload="Meet there at three",
),
Event(2750, "endpoint_committed", "control", 1),
Event(2770, "prefill_started", "control", 1, 7),
Event(3060, "first_token", "output text", 1, 7, "Okay"),
Event(3130, "audio_started", "output audio", 1, 7),
Event(
3300,
"useful_audio_completed",
"output audio",
1,
7,
"Tuesday at three",
),
Event(3470, "speech_onset", "input audio", 2),
Event(3500, "interrupt_detected", "control", 2, 7),
Event(3500, "generation_invalidated", "playback control", 2, 7),
Event(3505, "cancel_requested", "control", 2, 7),
Event(3565, "cancel_ack", "control", 2, 7),
Event(3580, "queued_samples_discarded", "control", 2, 7, 2400),
Event(3610, "audio_stopped", "output audio", 2, 7),
]
trace = build_trace()ConsoleOut [4]Expand
0 ms | capture_start | control | turn None | generation None 1000 ms | speech_onset | input audio | turn 1 | generation None 1510 ms | partial_transcript | input text | turn 1 | generation None 1710 ms | pause_start | input audio | turn 1 | generation None 2110 ms | speech_resumes | input audio | turn 1 | generation None 2160 ms | point_detected | input video | turn 1 | generation None 2400 ms | speech_end_annotated | input audio | turn 1 | generation None 2520 ms | final_transcript | input text | turn 1 | generation None 2750 ms | endpoint_committed | control | turn 1 | generation None 2770 ms | prefill_started | control | turn 1 | generation 7 3060 ms | first_token | output text | turn 1 | generation 7 3130 ms | audio_started | output audio | turn 1 | generation 7 3300 ms | useful_audio_completed | output audio | turn 1 | generation 7 3470 ms | speech_onset | input audio | turn 2 | generation None 3500 ms | interrupt_detected | control | turn 2 | generation 7 3500 ms | generation_invalidated | playback control | turn 2 | generation 7 3505 ms | cancel_requested | control | turn 2 | generation 7 3565 ms | cancel_ack | control | turn 2 | generation 7 3580 ms | queued_samples_discarded | control | turn 2 | generation 7 3610 ms | audio_stopped | output audio | turn 2 | generation 7
Querying the Trace: The Five Streaming Metrics
A query selects events by kind and, where applicable, turn or generation. An absent event yields no observed duration. Duplicate matches are an ambiguous trace, and a negative duration indicates a broken pairing or clock alignment. The code raises on those last two cases.
The availability of a measurement depends on the endpoint. If a response was canceled before useful audio, its useful-response latency is undefined. Keep the cancellation in the denominator when reporting completion and report latency among episodes with observed useful audio. For a fixed service target, count episodes that supplied useful audio on time alongside those still waiting at the deadline. A table that drops cancelled episodes can look faster while withholding useful responses more often.
The example reports a server first-token time, two listener-facing response times, an audible interruption time, and a stale-audio span. The interval from cancel request to acknowledgment is recorded as an extra diagnostic. The stale-audio span assumes generation 7 is continuously audible between player invalidation and stop. With gaps, sum the old-generation playback intervals instead of treating the whole span as sound.
PythonIn [5]Expand
def find_event(trace, kind, *, turn=None, generation=None):
matches = [
e
for e in trace
if e.kind == kind
and (turn is None or e.turn == turn)
and (generation is None or e.generation == generation)
]
if len(matches) > 1:
raise ValueError(f"Ambiguous event: {kind}")
return matches[0] if matches else None
def event_time(trace, kind, *, turn=None, generation=None):
event = find_event(trace, kind, turn=turn, generation=generation)
return None if event is None else event.t_ms
def elapsed(start, end):
if start is None or end is None:
return None
if end < start:
raise ValueError("Endpoint precedes start")
return end - start
end = event_time(trace, "speech_end_annotated", turn=1)
started = event_time(trace, "prefill_started", generation=7)
first = event_time(trace, "first_token", generation=7)
heard = event_time(trace, "audio_started", generation=7)
useful = event_time(trace, "useful_audio_completed", generation=7)
interruption = event_time(trace, "speech_onset", turn=2)
invalidation = event_time(trace, "generation_invalidated", turn=2, generation=7)
request = event_time(trace, "cancel_requested", generation=7)
ack = event_time(trace, "cancel_ack", generation=7)
stopped = event_time(trace, "audio_stopped", generation=7)
metrics = {
"model TTFT": elapsed(started, first),
"end to first audible output": elapsed(end, heard),
"end to first useful audio": elapsed(end, useful),
"cancel request to acknowledgment": elapsed(request, ack),
"audible barge-in": elapsed(interruption, stopped),
"stale audible output after invalidation": elapsed(invalidation, stopped),
}ConsoleOut [6]Expand
model TTFT: 290 ms end to first audible output: 730 ms end to first useful audio: 900 ms cancel request to acknowledgment: 60 ms audible barge-in: 140 ms stale audible output after invalidation: 110 ms
The first decoded token occurs 290 ms after prefill starts. From the end of the user turn, the first sound comes after 730 ms and the useful phrase finishes after 900 ms. The 170 ms difference is defined by playback, even when some of that time is silence. It does not claim that filling that time with words makes the material useful sooner.
VisualizationOut [8]Expand

The trace records 60 ms from cancel request to acknowledgment. It does not distinguish transmission from server processing. The user hears the old generation for 140 ms after interruption onset and 110 ms after the player invalidates generation 7. The renderer discards 2,400 queued samples at 24 kHz. Their 100 ms duration is recorded separately from what was heard. The lookup uses the interrupted turn and generation. This fixture records one aggregate discard event per cancellation. Log multiple device discard batches separately, then combine their sample counts at a common rate before recording such a summary. A missing summary leaves the discarded duration unobserved.
PythonIn [9]Expand
def allow_chunk(chunk_generation, current_generation):
return (
current_generation is not None
and chunk_generation == current_generation
)
def sample_duration_ms(count, sample_rate_hz):
if count < 0 or sample_rate_hz <= 0:
raise ValueError("Samples must be nonnegative and sample rate positive")
return 1000 * count / sample_rate_hz
discarded_event = find_event(
trace, "queued_samples_discarded", turn=2, generation=7
)
if discarded_event is None:
discarded_ms = None
else:
if type(discarded_event.payload) is not int:
raise ValueError("Expected an integer count of discarded samples")
discarded_ms = sample_duration_ms(discarded_event.payload, 24_000)
assert allow_chunk(7, 7) and not allow_chunk(7, 8) and allow_chunk(8, 8)
assert not allow_chunk(None, None) and not allow_chunk(7, None)ConsoleOut [10]Expand
Discarded queued audio at 24 kHz: 100 ms
A Latency Distribution
A percentile is an observed threshold indexed by rank in the sample. In the nearest-rank convention, select element in a sorted list of values, indexed from one. A shifted gamma draw provides 2,000 reproducible right-skewed values. Those values are a separate synthetic cohort and do not come from rerunning the single trace.
PythonIn [11]Expand
def nearest_rank(latencies_ms, q):
if not latencies_ms or not 0 < q <= 1:
raise ValueError("Provide observations and a quantile in (0, 1]")
return sorted(latencies_ms)[ceil(q * len(latencies_ms)) - 1]
rng = np.random.default_rng(7)
ttft_samples = (
(rng.gamma(shape=2.0, scale=180.0, size=2_000) + 400).astype(int).tolist()
)ConsoleOut [12]Expand
Sample count: 2000 q=0.50: 687 ms q=0.95: 1251 ms q=0.99: 1603 ms q=1.00: 2188 ms
VisualizationOut [14]Expand

Endpointing: The False-EOT Tradeoff
A simple timer commits if a pause lasts at least the threshold . For an unfinished pause of length , the error event is . For a completed turn with extra processing delay , a fixed deadline is missed when . The first probability stays constant or decreases as the timer grows. The second stays constant or increases. Changing the deadline or what counts as an unfinished pause changes the curves.
The synthetic fixture sweeps thresholds from 100 to 700 ms in 25 ms increments. It sets a 500 ms deadline and scores each threshold as 1.5 times the false-endpoint rate among unfinished pauses plus the late-endpoint rate among completed turns. To estimate expected cost per decision, multiply each conditional error rate by the frequency of its case and the cost of that error. For example, if 90% of cases in a hypothetical mix are unfinished pauses and the error costs stay at 1.5 and 1, those weights move the minimum on this same grid from 375 to 700 ms. This is a sensitivity check on synthetic rates.
PythonIn [15]Expand
rng = np.random.default_rng(21)
mid_pauses = rng.integers(80, 700, size=1000)
post_turn_processing = rng.integers(30, 110, size=1000)
thresholds = np.arange(100, 701, 25)
deadline_ms = 500
false_rates = np.array([np.mean(mid_pauses >= t) for t in thresholds])
late_rates = np.array(
[np.mean(t + post_turn_processing > deadline_ms) for t in thresholds]
)
endpoint_cost = 1.5 * false_rates + late_rates
best_threshold = int(thresholds[np.argmin(endpoint_cost)])ConsoleOut [16]Expand
Minimum on this grid: 375 ms, false rate 0.523, late rate 0.000
VisualizationOut [17]Expand

Modeling Continuous Perception in a Language Model
There are several places to handle timing. A controller can add aligned observations to a causal history and start a new response when a condition is met. A model can process synchronized input and output streams while it generates. A third design exposes structured actions such as yield or cancel, which the scheduler interprets. These can coexist. Each needs a contract about what the model knew when it emitted an output and which outputs the scheduler can still revoke.
The worked trace uses an explicit generation ID. It does not test turn prediction by a learned model. To test that capability, hold the client and detector policy fixed, vary the model or controller, and evaluate the same annotated interactions with speech pauses, overlapping talks and nonverbal references.
Serving a Streaming System: A Latency Accounting
If a critical path is purely serialized, its elapsed latency is the sum of its nonoverlapping stage durations. The next fixture assumes capture, VAD, partial transcription, endpointing, prefill, first token and playout all run serially. The first six intervals total 960 ms to the decoded token. The final 40 ms yields 1,000 ms from initial capture to first audio. These sums use hypothetical stage durations and are independent of the earlier trace.
In a live system, earlier chunks may be processed during the user’s turn and per-stage spans can overlap. Even when every stage is serial, summing stage quantiles generally gives a different result from taking a quantile of total latency. Measure the total for each trial to get the listener-facing distribution. Inspect the longest observed dependency chain when diagnosing a slow path.
PythonIn [18]Expand
hops = {
"capture": 30,
"vad": 60,
"asr partial": 150,
"endpointing": 300,
"model prefill": 300,
"first token": 120,
"playout startup": 40,
}
total = sum(hops.values())ConsoleOut [19]Expand
Serial capture to first audio: 1000 ms
VisualizationOut [21]Expand

The stages also motivate a scenario that separates prefill improvement from critical-path improvement. Suppose prefill decreases by 60 ms while 40 ms of that reduction occurs during work that was going to run anyway. The end-to-end gain is 20 ms under those assumptions. The same prefill change gives the full 60 ms in the serial fixture. A trace can test whether an optimization changed the critical path before attributing a system-level latency gain to its local measurements.
An experiment can measure concurrent stages from observed timestamps on the same replay trace. Record their intervals, predecessors, and whether the relevant endpoint needs all of them. For two parallel prerequisites with 50 ms and 80 ms remaining from a shared start, the earliest downstream start is 80 ms after that start. Further shortening the 50 ms prerequisite leaves this downstream start unchanged. Network wait, internal scheduling and playback startup belong in that model when they constrain start time.
Interruption and the Stale Output Problem
A player can track the only generation it is authorized to play. On invalidation it drops old entries from the mutable queue and rejects old-generation arrivals that still appear after cancellation. Applying the check both on receipt and before playback handles races across those boundaries. The allow_chunk predicate above requires an active generation and a matching chunk identifier. It does not model queue purge, concurrency, acks or audio-device commitments. A device may still play samples already committed outside the mutable queue, so trace what actually reaches the listener.
Generation IDs can protect playout when messages arrive out of order. Starting generation 8 makes it the active one at the player. A delayed generation-7 chunk should then be treated according to an explicit invalidation rule at the queue. Log the old chunk whether it was discarded or submitted, and test generation changes while both streams have queued data. A server acknowledgment tells the experiment that the cancellation was received. It cannot establish when the old chunk stopped affecting the listener.
The line between discarded and stale output is a measurement boundary. A generated sample can be decoded, queued, submitted to a device, or played. For a lab test, use a renderer event with a documented buffer offset or a recorded playback signal on a synchronized clock. Log both compressed chunk duration and underlying sample count where the decoder output rate differs from the transport clock. If the goal is to measure old-generation audible duration, decide how to handle silence or gaps. If the goal is time to stop, the last old-generation playback endpoint has a useful interpretation even when output is intermittent.
Evaluating Streaming Systems
Construct trials with annotated speech and gesture timing. Compare ordinary turn changes, long mid-turn pauses, backchannels, repeated interruptions and cases with no useful response. Keep conditions for echo, noise and network delay explicit, and check whether the audio and video clocks are aligned in the retained data.
Decide what constitutes useful output before measurement. Count mistaken endpoints, missed interruptions, wrong-generation playback, and canceled or censored responses separately. For per-user inference, account for repeated trials on the same speakers. Descriptive percentiles on a single fixture do not establish language or accessibility performance.
For comparison runs, carry a cohort key that joins outcomes to the same interaction and generation. Match endpoint variants on the same recorded input when replay permits it. A different answer may change a user's next turn, so a replay specification should identify which behaviors are forced and which can vary. In a live study, that dependence belongs in the unit of sampling. Treat consecutive packet timings from a single exchange as correlated observations when estimating uncertainty about user experience.
A reporting row can include a scenario, number of eligible turns, completed useful responses, deadline, share completed by that deadline, and quantiles among completed responses. An interruption row can track true interruptions, false interruptions and measured time to audible stop. A lower median among completed turns can accompany lower deadline success across all turns. A fast audio stop can accompany frequent interruptions of helpful backchannels. Evaluate correctness against the turns where the assistant's useful answer reaches the user.
A fixed deadline needs a complete observation window. Suppose a study follows two turns to a 900 ms cutoff. One gives useful output at 780 ms and the other is still pending at 900 ms. The observed completed-response median is 780 ms and the deadline completion rate is one half. The second turn does not have a measured useful-response latency. Report the time origin in both rows so different endpoint choices cannot silently alter the interpretation. It belongs in the deadline denominator, and the reporting system should distinguish pending at the cutoff from a definitive cancellation.
Limitations & Impact
The chart values are synthetic. Real audio measurements depend on the client, device, codecs, playback queue, model and timestamps used to instrument them. Stale audio may reflect already committed samples, wrong-generation arrivals, cancellation effect delay or gaps between playable intervals. Capture enough metadata to distinguish those cases.
Continuous input can include bystanders and private spaces. Keep retention and disclosure scoped to the feature's authorized purpose. Record the decision to store raw audio separately from a decision to store aggregate latency. Give users controls for camera and microphone capture as part of the application policy.
Summary
Measure what occurred at the client, server and model boundaries. Match trace events by turn and generation. Acknowledge cancellation and verify actual output stopped. Estimate false and late endpoints against separate cohorts and a fixed deadline. Compare sample percentiles with the rate of completed useful responses on the same workload.
Quiz
Streaming Multimodal Interaction
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!