Before you start: words you need#
| Word | Plain meaning |
|---|---|
| ASR | Automatic speech recognition: turning speech into text. |
| Sample rate | Audio measurements per second. Speech models usually take 16,000 (16 kHz), mono. |
| Mel spectrogram | A picture of sound: energy per frequency band per 10 ms slice. The usual input to a speech encoder. |
| CTC / RNN-T / TDT | Ways to turn encoder frames into text without a big autoregressive decoder. They emit tokens frame by frame and are naturally streaming. |
| WER | Word error rate: the fraction of words wrong (substituted, missing or extra). Lower is better. |
| RTFx | Inverse real-time factor: seconds of audio processed per second of compute. RTFx 1,000 means one hour of audio in 3.6 seconds. |
| VAD / endpointing | Voice activity detection: is someone speaking? Endpointing: has this person finished their turn? |
| Partial / final | A partial transcript can still change; a final one will not. |
1. What is it?#
Streaming ASR turns live audio into text while the person is speaking, with each word appearing a fraction of a second after it is said. It powers live captions, meeting notes, call-centre analytics and the first stage of every cascaded voice agent (26.f).
It differs from batch transcription (“here is a file, give me the text”) in one way that changes everything: audio arrives at exactly one second per second, for as long as the conversation lasts, and the system must keep up with every stream at once. Facts checked on 13 November 2026.
2. Why does it matter?#
- Latency is the product. Captions that trail by three seconds are unreadable; a voice agent that waits two seconds to finalise the user’s words feels broken.
- Accuracy and latency trade off. The model needs some future context to decide what was said. Every streaming design is a choice of how much future it waits for.
- The workload is stateful and long-lived. Each connection holds encoder context or a KV cache for minutes to hours, unlike a chat request.
- Falling behind is permanent. If a GPU cannot keep up, each stream’s backlog grows every second and never shrinks on its own (section 6).
3. Simple analogy#
A live interpreter. A cautious one waits for the end of each sentence (accurate, slow). An eager one speaks after every word and corrects themselves (fast, messy). A good one lags by about half a second, just enough to hear how a phrase ends. And an interpreter who misses ten seconds cannot catch up by “working harder later” if the speaker never pauses.
4. Tiny example: one second of speech#
microphone 16 kHz PCM16 mono, sent in chunks over a WebSocket
features log-mel, one frame per 10 ms -> 100 frames per second
encoder FastConformer: 8x subsampling -> one encoder frame per 80 ms
Whisper: one frame per 20 ms -> 1,500 frames per 30 s window
decoder RNN-T/TDT emits tokens per encoder frame, or an LLM-style decoder emits text tokens
output partial "the meet", partial "the meeting starts", final "The meeting starts at ten."5. Technical explanation#
Four model families#
| Family | How it decodes | Streaming? | Examples (2026) |
|---|---|---|---|
| Encoder + CTC / RNN-T / TDT | Small transducer emits tokens frame by frame | Yes, with a streaming encoder | NVIDIA Parakeet, Nemotron ASR Streaming |
| Encoder–decoder (attention) | Autoregressive text decoder reads the encoded window | Not natively; 30-second windows | Whisper (large-v3, large-v3-turbo), Canary |
| Audio encoder + LLM | An LLM decodes text from audio embeddings | Only if built for it | Qwen3-ASR, Voxtral (offline variants), omni models |
| Natively streaming decoder-only | Audio and text interleaved in time in one sequence, text delayed by a fixed amount | Yes | Kyutai STT (delayed streams), Voxtral Mini 4B Realtime |
Whisper large-v3-turbo is large-v3 with the decoder cut from 32 layers to 4 (809M parameters), which makes its autoregressive part cheap. Parakeet TDT 0.6B v3 is a 600M-parameter transducer covering 25 European languages, with timestamps. Both are offline models at heart.
Three ways to stream#
- Buffered (re-run a sliding window). Every update, re-encode the last N seconds and compare with the previous result; emit words that two consecutive runs agree on. This is how Whisper is made “real-time” (the LocalAgreement policy of whisper_streaming). Simple and model-agnostic, but each second of audio is encoded many times.
- Cache-aware streaming encoders. The encoder is trained with limited look-ahead and keeps a cache of its own past activations, so each new chunk is encoded once. NVIDIA’s Nemotron ASR Streaming (600M, FastConformer + RNN-T) offers chunk sizes of 80, 160, 560 and 1,120 ms chosen at run time without retraining, trading latency against WER.
- Natively streaming decoder-only models. Audio frames and text tokens share one causal
sequence, with the text running a fixed delay behind the audio (Kyutai’s “delayed streams
modeling”). Kyutai’s
stt-1b-en_fruses a 0.5-second delay; Mistral’s Voxtral Mini 4B Realtime (February 2026) uses a causal audio encoder and sliding-window attention, with a configurable delay up to 2.4 seconds; Mistral states that at 480 ms it matches leading offline open-source models (a vendor claim). Each text token covers 80 ms, so an hour of audio is 45,000 tokens of context.
Serving these in 2026#
- vLLM (v0.32.0) serves
/v1/audio/transcriptionsand/v1/audio/translations(OpenAI-compatible, Whisper and other models) and a WebSocket/v1/realtimeAPI for streaming models such as Voxtral Realtime: the client sends base64 PCM16 16 kHz mono audio ininput_audio_buffer.appendevents and receivestranscription.deltaevents, thentranscription.done. Install withvllm[audio]. Under the hood this uses vLLM’s streaming input requests (January 2026): the session is one long-lived request whose prompt grows chunk by chunk, reusing its KV cache. vLLM’s own blog notes it does not yet pre-empt idle sessions, so silent connections keep holding KV memory. - NVIDIA NeMo / Riva / NIM serve Parakeet, Canary and Nemotron streaming models with cache-aware streaming and frame-synchronous batching across streams.
- faster-whisper (CTranslate2) is a common choice for batch and buffered Whisper; its README reports up to 4x the speed of the reference implementation and supports INT8 and batched transcription.
- whisper.cpp for CPU and edge.
VAD and endpointing#
Most audio in a call is silence or the other person. A cheap VAD (Silero VAD and similar) in front of ASR saves GPU time and decides when to finalise. Endpointing (has the user finished?) is a separate, harder decision and is the largest single item in a voice agent’s latency budget (26.f). Some models now include semantic VAD (Kyutai’s STT predicts end of turn from meaning, not just silence).
6. Under the hood: capacity and the backlog#
The program compares streaming strategies by how much encoder work each second of live audio costs, then shows what overload does. Assumptions: the GPU encodes 2,000 seconds of audio per second when every frame is encoded once in big batches, and each update has a fixed cost worth 0.04 seconds of encoding.
package main
import "fmt"
// How many live audio streams can one GPU keep up with?
// Assumption: in large batches the encoder processes 2,000 seconds of audio per
// second of GPU time (RTFx 2000) when every audio frame is encoded exactly once.
const rtfx = 2000.0
type strategy struct {
name string
chunkSec float64 // new audio per update
winSec float64 // audio actually re-encoded per update (0 = only the new chunk)
}
// Assumption: every update also pays a fixed cost (decoder steps, attention to the
// cached context, scheduling) worth 0.04 s of audio-encoding work.
const perUpdate = 0.04
// encoder seconds of audio processed per second of live audio
func work(s strategy) float64 {
encoded := s.chunkSec
if s.winSec > 0 {
encoded = s.winSec
}
return (encoded + perUpdate) / s.chunkSec
}
func main() {
ss := []strategy{
{"offline, 30 s windows", 30, 0},
{"buffered: 1.0 s chunks, 10 s window", 1.0, 10},
{"buffered: 0.16 s chunks, 10 s window", 0.16, 10},
{"cache-aware: 0.16 s chunks", 0.16, 0},
{"cache-aware: 0.08 s chunks", 0.08, 0},
}
fmt.Printf("%-38s %10s %14s\n", "strategy", "work x", "streams/GPU")
for _, s := range ss {
fmt.Printf("%-38s %9.1fx %14.0f\n", s.name, work(s), rtfx/work(s))
}
// What happens when load exceeds capacity: lag grows without bound.
fmt.Println("\nlag of every stream when 10% more streams than capacity are connected:")
capacity := rtfx / work(ss[3])
streams := capacity * 1.10
lag := 0.0
for minute := 1; minute <= 10; minute++ {
// each second, the GPU finishes capacity/streams seconds of audio per stream
lag += 60 * (1 - capacity/streams)
if minute == 1 || minute%3 == 0 {
fmt.Printf(" after %2d min: %5.1f s behind real time\n", minute, lag)
}
}
}Output:
strategy work x streams/GPU
offline, 30 s windows 1.0x 1997
buffered: 1.0 s chunks, 10 s window 10.0x 199
buffered: 0.16 s chunks, 10 s window 62.7x 32
cache-aware: 0.16 s chunks 1.2x 1600
cache-aware: 0.08 s chunks 1.5x 1333
lag of every stream when 10% more streams than capacity are connected:
after 1 min: 5.5 s behind real time
after 3 min: 16.4 s behind real time
after 6 min: 32.7 s behind real time
after 9 min: 49.1 s behind real timeHow to read it:
- Buffered streaming is expensive. Re-encoding a 10-second window every 160 ms costs about 63x the work of encoding once: 32 streams instead of 1,600. This is why “just run Whisper on a sliding window” works for a demo and fails as a service.
- Cache-aware encoders keep streaming close to offline cost, losing only to the per-update overhead (1.25x at 160 ms, 1.5x at 80 ms). Smaller chunks mean lower latency and more overhead.
- Overload is not graceful. At 110% load every stream falls 5.5 seconds further behind each minute, indefinitely. Admission control must refuse new streams before capacity, not after.
7. Performance implications#
- Batch across streams, per frame. The server gathers the next chunk from every active stream and runs them as one batch (frame-synchronous batching). Larger batches raise throughput but each stream waits for the batch: a latency–throughput trade like LLM decode (2.d).
- State per stream is the memory limit. Encoder caches for cache-aware models, or KV cache for
decoder-only streaming models (which grows with session length unless sliding-window attention
bounds it). For Voxtral Realtime,
--max-model-lensets the longest session. - VAD gating cuts GPU work by the fraction of silence, often half or more in two-party calls.
- Audio preprocessing is CPU work: decoding codecs (Opus, μ-law telephony audio), resampling to 16 kHz, computing mel features if not done on GPU.
- Small models, many calls. A 0.6B model’s per-update kernels are tiny; CUDA graphs and fused streaming kernels matter (13.k).
8. Production implications#
- Measure the right latencies. Time to first partial, time from end of speech to final, and stream lag. Report p50 and p99 per stream, not per request.
- Measure accuracy on your audio. Public WER leaderboards use clean read speech; phone audio, accents, jargon and crosstalk can multiply error rates. Keep an in-domain test set.
- Sticky sessions. A stream lives on one GPU; the router must pin it, and a node failure drops every stream on it. Plan reconnect-and-resume (resend the last few seconds).
- Admission control on stream count, from the measured capacity of each GPU type and chunk size.
- Idle sessions. Close or park silent connections; in vLLM they keep their KV blocks.
- Privacy. Audio is personal data; decide retention, redaction and region of processing before launch.
9. Common mistakes#
- Treating Whisper as a streaming model. It sees 30-second windows; streaming it means buffered re-runs and their cost.
- Benchmarking RTFx on files and assuming that is streaming capacity.
- Running at 95% capacity. A short burst becomes a backlog that never clears.
- Confusing VAD with endpointing. A 300 ms pause is not the end of a turn.
- Ignoring audio format. 8 kHz telephony audio fed to a 16 kHz model without proper resampling destroys accuracy.
10. Hands-on exercise#
- Run the program. At what per-update overhead does an 80 ms cache-aware stream cost twice the offline work?
- Add VAD: assume 45% of each stream is silence and costs nothing. How many streams per GPU now?
- Voxtral Realtime emits one text token per 80 ms. How many tokens is a 3-hour session, and what does that mean for KV cache memory on a 4B model you size with 12.f?
- Start
vllm serve mistralai/Voxtral-Mini-4B-Realtime-2602 --tokenizer-mode mistralon a GPU (vLLM’s recipe for this model), stream a WAV file to/v1/realtimein 4 KB chunks with the example client, and record the delay between each spoken word and itstranscription.delta.
11. Interview questions#
- Explain buffered, cache-aware and natively streaming ASR. What does each cost per second of audio?
- Why does a streaming service at 105% of capacity degrade worse than a chat service at 105%?
- What is the trade-off controlled by the chunk size of a cache-aware encoder?
- How would you route and fail over long-lived streaming sessions?
- Why might a decoder-only streaming ASR model need sliding-window attention?
12. Further reading#
Checked on 13 November 2026.
- Speech to text and the Realtime API (vLLM v0.32.0 docs)
- Streaming requests and Realtime API in vLLM (vLLM blog, 31 January 2026)
- Voxtral Mini 4B Realtime 2602 model card
- Nemotron ASR Streaming 0.6B model card
- Stateful conformer with cache-based inference for streaming ASR (arXiv 2312.17279)
- Kyutai delayed streams modeling (STT and TTS)
- Turning Whisper into a real-time transcription system (arXiv 2307.14743)
- Robust Speech Recognition via Large-Scale Weak Supervision (Whisper, arXiv 2212.04356)
- faster-whisper
- Open ASR Leaderboard