Skip to content
AI.info

Speech and audio

ASR Serving, Latency, Privacy, and Monitoring

Design ASR deployment around streaming state, batching, model routing, privacy, logging, monitoring, incidents, and change management.

By the end you can

Comparison

Batch, stream, or on the handset

The same recognizer can be deployed in three shapes, and they are not variants of one another. Offline batch ASR works on stored recordings. It can hand the model the complete file before committing to a word, and optimize throughput while it does. A streaming service has to answer while the speaker is still talking. On-device recognition has to answer inside a battery and a thermal envelope. The quantized RNN-T that He and colleagues ran on a Google Pixel phone in 2019 occupied 120 MB. No server-side deployment ever has to answer for a number like that.

Each shape is built against a different constraint. The evidence that clears one does not clear the others. A throughput figure says nothing about what a caller waits for. Neither figure says anything about what a handset does to its own power draw. The rest of this lesson works mostly on the middle case. That is where the measurement most reliably goes wrong.

The three columns below name, for each shape, the decision it turns on, the evidence that speaks to that decision, and the habit that most often substitutes for the evidence.

FigureComparison · 3 columns

Offline batch ASR

Optimizes throughput and complete context for stored recordings.

  • Decision focus: Budget end-to-end latency
  • Useful evidence: First-token, final, and endpoint latency percentiles
  • Watch for: Using real-time factor as the only latency measure
  • Best used when its assumptions are documented for asr serving, latency, privacy, and monitoring

Streaming service

Optimizes incremental latency, state continuity, and partial results.

  • Decision focus: Design state and routing
  • Useful evidence: Throughput, real-time factor, cost, and queue depth
  • Watch for: Cross-session state or context leakage
  • Best used when its assumptions are documented for asr serving, latency, privacy, and monitoring

On-device recognition

Reduces network exposure but faces memory, energy, update, and hardware limits.

  • Decision focus: Minimize retained data
  • Useful evidence: Acoustic-input drift and transcript proxy signals
  • Watch for: Raw-audio logging without retention and access controls
  • Best used when its assumptions are documented for asr serving, latency, privacy, and monitoring

Example

RT90 = 0.51, and the caption still arrives two seconds late

Take a number that a real streaming system actually publishes. He and colleagues, reporting an on-device recognizer in 2019, say exactly what theirs measures: “In Table 4, we report WER and RT90, i.e. real time factor (processing time divided by audio duration) at 90 percentile, where lower values indicate faster processing and lower user-perceived latency.” Their symmetrically quantized RNN-T reaches RT90 = 0.51 — twice as fast as real time — at 7.3% voice-search word error rate. The float word-piece model sits at 1.43. The quantized CTC baseline sits at 0.86.

Notice what that figure is and is not. It is a 90th percentile, which is already better discipline than an average. And it is scoped to processing time divided by audio duration: model compute. A service can carry an RT90 of 0.51 and still put the caption on the screen two seconds after the words were spoken. Those two seconds accumulate across network buffering, voice activity detection, queueing, decoding and punctuation. Then comes the interface's own commit policy — the moment the UI is willing to put a caption up and stop revising it. Nothing in a real-time factor accounts for the buffer, the queue, or that moment. The published figure is correct and the service is late. Both statements stay true at the same time. This is the reference point for everything below.

  • The decision this lesson prepares you for is how an ASR deployment is designed. Streaming state, batching, model routing, privacy, logging, monitoring, incidents and change management are settled at deployment time, not by the model.
  • The failure is a habit rather than a bug: treating real-time factor as the only latency measure the service reports, even when it is honestly reported as RT90 = 0.51 for the compute stage alone.
  • The evidence that would have caught it is a set of percentiles measured on the service rather than the model — how long one user waits for the first token, for the final transcript, and for the endpoint decision.
  • The practical response is to instrument every stage from the microphone to the displayed text, so the next two seconds can be charged to whichever stage produced them rather than to the 0.51.

Case

150 milliseconds, a 60-millisecond frame, and a synchronicity rule with legal force

Two seconds is a large number, but large against what? The budget the caption overran is older than the recognizer and was set well outside it. ITU-T Recommendation G.114 puts one-way transmission time below 150 milliseconds in the range where interactivity is essentially transparent. Between 150 and 400 milliseconds it is acceptable, provided the impact is understood. Above 400 milliseconds it is unacceptable for general network planning.

A recognizer is one line item inside that budget. The transport is another, and it bills first. Opus, standardised by the IETF in September 2012, encodes frames of 2.5, 5, 10, 20, 40 or 60 milliseconds and covers sampling rates from 8 to 48 kilohertz. Choose the 60-millisecond frame and nearly half the transparent budget is spent before decoding starts. That is one value, set once, in a configuration file. No amount of model speed wins it back.

For live captioning there is a third document in the stack, and it is not an engineering guideline. The FCC's caption quality standards, adopted in February 2014, make synchronicity a legal requirement: “In order to be synchronous, captions must coincide with their corresponding spoken words and sounds to the greatest extent possible, given the type of the programming.” The same rule requires that captions be displayed at a speed viewers can read. So the commit policy that spent the caption's last stretch of delay is not only a UX preference to be traded against stability. Here it is measured against a codified obligation. The two seconds overran a rule, not a taste.

Ground truth arrives late, if at all

Put the two seconds, the 150-millisecond budget and the FCC's synchronicity paragraph side by side. The shape of the problem is a chain rather than a component. ASR serving includes capture, transport, buffering, segmentation, model inference, decoding, post-processing, delivery, storage, and feedback. Model compute is one item on that list for latency. It is one item for cost, for privacy exposure, and for operational risk too.

Watching such a chain is harder than watching a classifier, and there is a measured defect that shows why. A 2024 study of Whisper transcripts reports: “While many of Whisper's transcriptions were highly accurate, we find that roughly 1% of audio transcriptions contained entire hallucinated phrases or sentences which did not exist in any form in the underlying audio.” Of those hallucinations, 38% included explicit harms. They concentrated on speakers with longer non-vocal durations, such as speakers with aphasia. A defect at roughly 1% of outputs is invisible to every latency and throughput dashboard in the building. The pipeline was fast, the queue was shallow, the transcript arrived, and the sentence was not in the audio. Detecting it means re-running audio and comparing transcripts. Somebody has to correct a transcript before anyone learns it was wrong. And because the hallucinations concentrate on particular speakers, the sample you review decides what you can find. The raw material is a recording of a person speaking, which is why logging everything is neither necessary nor safe. The proxy metrics that fill the gap in the meantime can drift on their own.

What you are left with is two views of one service, answering different questions. Per-user percentiles say how long one person waits. Fleet metrics — throughput, real-time factor, cost, queue depth — say how much work the service is absorbing. The RT90 of 0.51 in the case above was the second kind of number, used to answer the first kind's question. Neither view answers the other's. A release decision needs both.

Ship on model latency alone and you learn about the transport, the queue, the hallucinated 1% and the stored recordings after the incident.

Key idea

The tokenizer changed and comparability went with it

A serving claim holds up until someone checks it against four habits. Each one buys a cheap signal. Each pays for it in something that can no longer be checked afterwards.

1) Using real-time factor as the only latency measure. 2) Cross-session state or context leakage. 3) Raw-audio logging without retention and access controls. 4) Silent model or tokenizer changes breaking transcript comparability.

The first is the case above: one clean number, RT90 = 0.51, bought at the price of the wait a caller actually feels. The second buys context by reusing it across sessions, so one speaker's material can surface inside another speaker's transcript.

The third has a filed case, a court and a price. On 31 May 2023 the DOJ, on behalf of the FTC, sued Amazon over Alexa. The complaint alleged that Amazon kept children's voice recordings indefinitely, and that it failed to delete transcripts of what children said from all its databases when parents asked. Samuel Levine, Director of the FTC's Bureau of Consumer Protection, put the principle in one line: “COPPA does not allow companies to keep children's data forever for any reason, and certainly not to train their algorithms.” Under the proposed order Amazon agreed to a $25 million civil penalty. It agreed to delete inactive Alexa child accounts, and voice and geolocation data subject to deletion requests. It agreed to stop using that data for the creation or improvement of any data product. Keeping the complete recording because it might be useful later is how a monitoring convenience becomes a standing store of other people's conversations. The retained transcript is part of the exposure, not a sanitised substitute for the audio.

The fourth is the one that is worst to discover late. Once the tokenizer has moved, yesterday's transcripts and today's are no longer the same measurement. The baseline you would have used to show the upgrade helped has already been erased.

Real-time factor averages away the wait a caller actually feels, indefinite retention cost Amazon $25 million under a proposed order, and a quiet tokenizer change erases the baseline you would have compared either against.

Analogy

A parcel network with a fragile item inside

A parcel passes through pickup, sorting, transport, inspection, and delivery. A transcript passes through much the same chain. That is why a fast sorting machine cannot compensate for queueing elsewhere in the network. An RT90 of 0.51 is a fast sorting machine.

The picture breaks in three places worth keeping. A parcel arrives as the thing that was sent. An ASR service revises text it has already delivered to the screen, so "delivered" is a commit policy rather than a moment — and for captioned programming that policy answers to the FCC's synchronicity rule. A parcel network also does not, roughly 1% of the time, deliver a box that was never sent. That is what the Whisper hallucination result describes. And what is inside the box is a conversation rather than an object. That is why retention here is a design question that ends in a docket number rather than a warehousing one.

Measure the complete service path and govern every retained artifact.

Example

Latency budgets that decide the architecture

Live captions, call transcription, on-device assistants, and enterprise ASR run much the same pipeline against four different budgets. It is the budget rather than the pipeline that fixes the architecture. The case above belongs to the first of the four. The other three would have failed differently, and would have needed different units to show they had not.

  • Live captions live or die on end-to-end latency and on partial stability — how much the text moves after it appears. Under the FCC's caption rules that commit policy is measured against a synchronicity requirement rather than against taste.
  • Call transcription is shaped by throughput and by how long recordings are kept, so its architecture follows the retention rules at least as closely as the millisecond count. The Amazon Alexa order required deletion of voice data subject to deletion requests, and barred its use for the creation or improvement of any data product.
  • On-device assistants answer to energy, thermal behavior, memory and update safety. None of those is measured in milliseconds at all: that 2019 system is described by 120 MB on a Google Pixel phone as much as by RT90 = 0.51.
  • Enterprise ASR routes by domain and by language, and that routing has to carry versioned policies before any individual transcript can be explained after the fact.

Steps

Design an ASR operations dashboard

An operations dashboard earns its place when it can settle an argument about where the delay came from instead of starting one. The test is the case above. On the morning after, could this dashboard say which of those six stages the two seconds came from, when the model's own RT90 was 0.51?

Step 2 has a documented precedent. It includes the sampling rate a real deployment used, and what it had to change once the sampling became public. Apple's Siri "grading" programme had human reviewers listen to a sample of Siri audio. It was suspended after press disclosure in July 2019. On 28 August 2019 Apple stated: “Before we suspended grading, our process involved reviewing a small sample of audio from Siri requests — less than 0.2 percent — and their computer-generated transcripts, to measure how well Siri was responding and to improve its reliability.” Apple announced that by default it would no longer retain audio recordings of Siri interactions. It made audio sampling opt-in and restricted listening to Apple employees. A related class action, Lopez v. Apple, had been filed on 7 August 2019. Less than 0.2 percent is a small number, and it was still the thing that had to change. The design question is not only how much you sample. It is whether the sampling survives being described in public.

Write down what your end-to-end latency budget assumes. Then write one case that breaks it — the 60-millisecond Opus frame, a queue that grows under load, a commit policy tuned for stability rather than speed. Then write what the on-call response is when that case appears.

FigureProcess · 4 steps
  1. 1. Map the request path

    Instrument every stage from microphone to displayed text.

  2. 2. Choose privacy-preserving telemetry

    Prefer aggregates, hashes, sampled review, and short retention where possible.

  3. 3. Define quality proxies

    Track silence insertions, confidence shift, language mix, and correction patterns.

  4. 4. Prepare rollback

    Version model, tokenizer, decoder, normalization, and context configuration together.

Unless model, tokenizer, decoder, normalization and context configuration carry one shared version, yesterday's transcripts cannot be held against today's and the dashboard settles no argument.

Example

Percentiles for the user, queue depth for the fleet

That dashboard has to carry both of the views the chain forces apart, and then a third kind of evidence that only accumulates over time. The four layers below are that list.

Why the per-user percentile and the fleet average cannot substitute for each other has a number attached to it. Take a server that responds in 10 ms typically but has a 99th-percentile latency of one second. On its own it makes one request in 100 slow. Dean and Barroso, writing in 2013, worked out what that server does inside a fan-out: “If a user request must collect responses from 100 such servers in parallel, then 63% of user requests will take more than one second”. At a real Google service, the 99th-percentile latency for a single request measured at the root was 10 ms, while the 99th percentile for all requests to finish was 140 ms. A modest tail at one stage becomes the common case once a request crosses many stages. Capture, transport, buffering, segmentation, inference, decoding, post-processing and delivery are exactly that.

The same argument applies to accuracy. There the slice that matters is usually a group of speakers rather than a group of servers. A 2020 PNAS study tested five commercial ASR systems — Amazon, Apple, Google, IBM and Microsoft — on 19.8 hours of matched interview audio from 42 white and 73 black speakers. It measured “an average word error rate (WER) of 0.35 for black speakers compared with 0.19 for white speakers”. That is a gap of 0.16 absolute WER between speaker groups, across five deployed services at once, and an aggregate accuracy number hides it completely. Report the difficult slices with whichever layer you are reporting — the calls where the service is slowest, the speakers for whom it is least accurate — not the average taken across all of them. The case above passed comfortably on the average. Read the four layers together and no single number is left carrying the release claim on its own.

  • The core evidence is what the user waits for: first-token, final, and endpoint latency percentiles, measured at the root of the request rather than at the model — the Dean and Barroso gap between 10 ms and 140 ms is the whole point.
  • System behavior is the other view, the fleet rather than the person — throughput, real-time factor, cost, and queue depth, with real-time factor reported as a percentile such as RT90 rather than as an average.
  • The robustness slice covers acoustic-input drift, the speaker groups where accuracy falls apart (0.35 against 0.19 WER in PNAS 2020), and the transcript proxy signals that stand in for ground truth while it is still late.
  • The lifecycle evidence is what only time produces: incident rate, rollback time, retention compliance, and correction feedback — the layer on which the Alexa retention allegations and the suspension of Siri grading would have shown up first.

An average that everybody passes is not evidence; the slowest slice is, and so is the 0.16 WER gap between speaker groups that the average erases.

Key takeaways