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.
| Stage | Role | Typical latency contribution |
|---|---|---|
| Audio capture and chunking | Buffers microphone samples | 20-160 ms per chunk |
| Feature extraction | Computes mel filterbank frames | Under 10 ms |
| Streaming encoder | Updates acoustic representation | Depends on lookahead |
| Decoder and search | Emits partial tokens | Tens of milliseconds |
| Endpointing | Finalizes the utterance | 200-800 ms of trailing silence |
| Post-processing | Punctuation and formatting | Small, often on finals only |
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.
| Architecture | Streaming mechanism | Strength | Weakness |
|---|---|---|---|
| RNN-Transducer (RNN-T) | Joint network emits tokens per frame | Native streaming, strong accuracy | Complex training, high memory |
| CTC with causal encoder | Frame-level labels, no decoder state | Simple and fast | Weaker language modeling |
| Chunked Conformer | Attention limited to chunks plus cache | High accuracy with bounded delay | Chunk size tuning required |
| Two-pass models | Streaming first pass, rescoring second pass | Near-offline final accuracy | Finals arrive later |
| Hybrid HMM-DNN | Frame posteriors with WFST decoding | Mature, controllable | Separate components to maintain |
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.
| Measure | What it captures | Typical target for conversation |
|---|---|---|
| First-token latency | Delay before any text appears | Under 300 ms |
| Partial word latency | Delay between spoken and displayed word | 200-500 ms |
| Final result latency | Delay until text is committed | Under 1 s after speech ends |
| Real-time factor | Compute time divided by audio time | Well below 1.0 |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Text flickers and rewrites | Unstable partial hypotheses | Display stability thresholds |
| Sentences cut in half | Endpoint timeout too short | Lengthen trailing silence window |
| Names consistently wrong | Missing domain vocabulary | Contextual biasing phrase lists |
| Delay grows during a session | Unbounded state or buffering | Cap cache size, monitor queue depth |
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.