Streaming speech recognition

Also known as: real-time transcription

On this page 7

Streaming speech recognition is a form of automatic speech recognition that transcribes audio incrementally as it arrives, producing partial text within a few hundred milliseconds instead of waiting for the speaker to finish. In speech & language AI, it is also called real-time transcription and underpins voice assistants, live captions, contact center analytics and any interface where a system must react while a person is still speaking.

The defining constraint is bounded latency with limited future context. An offline recognizer can read an entire recording before deciding on any word, whereas a streaming model must commit to hypotheses using only past audio and a short lookahead window. The engineering challenge is to keep accuracy close to offline quality while holding delay low enough for natural conversation.

How streaming speech recognition processes live audio

A streaming recognizer consumes audio in short chunks, commonly 20 to 160 milliseconds, converts each chunk into acoustic features such as log mel filterbanks, and updates its internal state before emitting new tokens. The client usually sends audio over a persistent connection such as WebSocket or gRPC, and the server returns a sequence of results while the session remains open.

Results come in two kinds. Partial (interim) hypotheses reflect the current best guess and may be revised as more audio arrives. Final hypotheses are committed once an endpoint is detected or the model is confident that later audio will not change them. Applications must handle this revision behavior, for example by overwriting the last caption line instead of appending text.

Around the recognizer sit supporting components. Voice activity detection filters silence and noise, an endpointer decides when an utterance has ended, and post-processing adds punctuation, capitalization and inverse text normalization so that spoken forms such as twenty dollars appear as $20. The table summarizes the pipeline stages.

StageRoleTypical latency contribution
Audio capture and chunkingBuffers microphone samples20-160 ms per chunk
Feature extractionComputes mel filterbank framesUnder 10 ms
Streaming encoderUpdates acoustic representationDepends on lookahead
Decoder and searchEmits partial tokensTens of milliseconds
EndpointingFinalizes the utterance200-800 ms of trailing silence
Post-processingPunctuation and formattingSmall, often on finals only
Stages of a streaming recognition pipeline

Model architectures built for streaming

Not every speech model can stream. Architectures that attend over the full utterance, such as standard attention-based encoder-decoder models, need the whole input before decoding. Streaming-capable architectures restrict the encoder to past frames plus a small, fixed lookahead and use a decoder that can emit tokens frame by frame.

ArchitectureStreaming mechanismStrengthWeakness
RNN-Transducer (RNN-T)Joint network emits tokens per frameNative streaming, strong accuracyComplex training, high memory
CTC with causal encoderFrame-level labels, no decoder stateSimple and fastWeaker language modeling
Chunked ConformerAttention limited to chunks plus cacheHigh accuracy with bounded delayChunk size tuning required
Two-pass modelsStreaming first pass, rescoring second passNear-offline final accuracyFinals arrive later
Hybrid HMM-DNNFrame posteriors with WFST decodingMature, controllableSeparate components to maintain
Common architectures for streaming recognition

Modern systems frequently use a Conformer encoder trained with a transducer or CTC objective and chunk-wise attention masks. A cache of past keys and values lets each new chunk attend to history without recomputation, which keeps the real-time factor well below 1, meaning processing takes less time than the audio duration.

Latency, accuracy and how they trade off

Streaming quality is measured on two axes at once: word error rate (WER) and latency. Latency itself has several definitions, so comparisons are meaningful only when the metric is stated. Allowing more lookahead almost always lowers WER, because the model hears the end of a word before committing, but it delays every partial result by the same amount.

MeasureWhat it capturesTypical target for conversation
First-token latencyDelay before any text appearsUnder 300 ms
Partial word latencyDelay between spoken and displayed word200-500 ms
Final result latencyDelay until text is committedUnder 1 s after speech ends
Real-time factorCompute time divided by audio timeWell below 1.0
Latency measures used in evaluation

A common rule of thumb is that streaming models lose some accuracy relative to the same architecture run offline, with the gap shrinking as lookahead grows. Training techniques such as FastEmit regularization push the transducer to emit tokens earlier, and knowledge distillation from an offline teacher recovers part of the accuracy lost to restricted context.

Streaming compared with batch transcription

Streaming and batch speech-to-text solve different problems, and many products use both. Batch transcription processes a complete file, can apply bidirectional models, speaker diarization across the whole recording and heavy rescoring, and therefore reaches the highest achievable accuracy. Streaming trades some of that accuracy for immediacy.

  • Choose streaming for voice commands, live captioning, agent assist and any dialogue that requires barge-in or turn detection.
  • Choose batch for archived meetings, legal or medical records and subtitle files where quality outweighs speed.
  • Combine both when live captions are needed during a call and an accurate transcript is produced afterward from the same audio.

Practical pitfalls in deployment

Most production problems come from the surrounding system rather than the model. Network jitter delays audio chunks and inflates perceived latency, mismatched sample rates silently degrade accuracy, and aggressive endpointing cuts off speakers who pause mid-sentence. Contextual biasing toward expected names and product terms is often the single most effective accuracy improvement for domain vocabulary.

SymptomLikely causeFix
Text flickers and rewritesUnstable partial hypothesesDisplay stability thresholds
Sentences cut in halfEndpoint timeout too shortLengthen trailing silence window
Names consistently wrongMissing domain vocabularyContextual biasing phrase lists
Delay grows during a sessionUnbounded state or bufferingCap cache size, monitor queue depth
Symptoms, causes and fixes

The idea in brief

Streaming speech recognition turns speech into text while the person is still talking. It does not wait for the end of a sentence. Words appear on screen almost at once.

Think of a skilled live captioner on television. The captioner types what is heard, sometimes fixes a word a moment later, and keeps up with the speaker. The computer does the same. The main trade-off is simple: waiting a little longer gives better accuracy, while answering faster can mean more small mistakes.

A practical scenario

A regional bank runs a customer service line that handles about 3,000 calls a day. It deploys streaming speech recognition so that an assistant panel can show agents the caller’s words in real time and suggest relevant policy articles. The recognizer uses a chunked Conformer transducer with 160 ms chunks and 320 ms lookahead, and the audio arrives at 8 kHz from the telephone network.

In the first week, agents complained that account product names were misrecognized and that captions stopped mid-sentence. The team added a contextual biasing list of 400 product and branch names and raised the endpoint silence window from 300 to 600 milliseconds. Partial words now appear about 400 ms after they are spoken, and the suggestion panel updates before the caller finishes the question. Supervisors report that agents find the correct article faster, and the bank still produces a more accurate batch transcript after each call for quality review.