AWS SageMaker AI adds bidirectional streaming for real-time speech transcription with vLLM
Amazon SageMaker AI has launched bidirectional streaming support for real-time inference, enabling WebSocket-based voice applications through vLLM integration. The feature uses HTTP/2 on port 8443 to bridge client connections with vLLM's Realtime API, allowing audio to stream in while transcription streams back simultaneously over a single persistent connection.
AWS SageMaker AI adds bidirectional streaming for real-time speech transcription with vLLM
Amazon SageMaker AI launched bidirectional streaming support for real-time inference in November 2025, according to an AWS blog post. The feature enables persistent, full-duplex connections between clients and model containers over HTTP/2, specifically targeting real-time speech-to-text applications.
Technical architecture
The implementation connects three layers:
Client to SageMaker AI: Applications connect to SageMaker AI runtime endpoints on port 8443 using HTTP/2. Each JSON message in vLLM's Realtime protocol is sent inside a RequestPayloadPart with DataType set to "UTF8", instructing SageMaker AI to forward data as WebSocket text frames.
SageMaker AI to container: SageMaker AI automatically bridges HTTP/2 event streams and WebSocket protocols. It establishes a WebSocket connection to containers at ws://localhost:8080/invocations-bidirectional-stream and forwards data frames bidirectionally.
Container layer: A FastAPI bridge listens on port 8080 and forwards connections to vLLM's Realtime API at ws://localhost:8081/v1/realtime. The bridge handles route translation between SageMaker AI's expected path and vLLM's native endpoint.
vLLM Realtime API protocol
vLLM's Realtime API requires audio encoded as base64 PCM16 at 16 kHz sample rate, mono channel. The protocol flow:
- Client connects to
ws://host/v1/realtime - Server sends
session.createdevent - Client sends
input_audio_buffer.commitwhen ready - Client streams
input_audio_buffer.appendevents with base64 audio chunks - Server streams
transcription.deltaevents with incremental text - Server sends
transcription.donewith final transcription and usage statistics
The model begins transcribing as soon as it has sufficient audio context, streaming tokens back while the client continues sending audio chunks.
Reference implementation
AWS provides a reference implementation using Mistral AI's Voxtral-Mini-4B-Realtime-2602 model. The example includes:
- Custom Docker container built on SageMaker AI vLLM Deep Learning Container
- Python client using SageMaker AI bidirectional streaming SDK
- Gradio-based live microphone demo
- Full code available in an AWS GitHub repository
vLLM applies piecewise CUDA graph execution to reduce GPU kernel launch overhead, directly reducing per-token latency during streaming transcription.
Infrastructure requirements
SageMaker AI handles connection management with WebSocket ping/pong keepalive frames, container health checks, and CloudWatch monitoring. The service eliminates the need for custom protocol translation layers or GPU server management.
What this means
This release removes a significant infrastructure barrier for deploying production voice AI applications on AWS. The automatic HTTP/2-to-WebSocket bridging and native vLLM integration eliminate the need for custom streaming infrastructure. For enterprises already using SageMaker AI, this provides a direct path to add real-time voice capabilities—voice agents, live captioning, contact center analytics—without migrating to specialized speech platforms. The open-source vLLM foundation prevents vendor lock-in on the serving layer while AWS handles operational complexity.
Related Articles
OpenAI's ChatGPT Chrome extension can now read your open tabs and control them via ChatGPT Work
OpenAI has upgraded its ChatGPT Chrome extension so ChatGPT can view your open tabs when you tag Chrome in the web or desktop app. The update also adds a sidebar with full conversation history and lets ChatGPT Work control tabs to fill forms, send messages, and download files.
Google's Gemini 4 Argon targets full robotics pipeline: 87% on ERQA, but third on AA-Robotics at 55/100
Google DeepMind is positioning Gemini 4 Argon as one model that controls robots, builds simulated training environments, and grades training data. Google claims 87% on the ERQA benchmark, ahead of Claude Opus 5.5 at 82.3%. Artificial Analysis's AA-Robotics test, published a day later, placed Argon third at 55 out of 100.
Liquid AI Publishes GGUF Builds of LFM2.5-24B-A2B, Including a 13.6 GB Quantization-Aware Q4_0 Checkpoint
Liquid AI has published GGUF builds of LFM2.5-24B-A2B, a 24B-parameter model on the lfm2moe architecture, in sizes from 13.6 GB (Q4_0) to 48 GB (BF16). The Q4_0 file is a Quantization-Aware Distillation checkpoint trained to recover accuracy lost to 4-bit quantization.
Google builds Antigravity into Gemini app for macOS, limited to AI Ultra subscribers
Google has integrated Antigravity, its agent-first development platform, directly into the Gemini app for macOS as part of the Gemini 4 Argon rollout. Access requires an AI Ultra subscription, while the new model itself requires AI Pro or above. The update also renames and reorganizes several app features, including Gemini Spark, Skills and Connectors.
Comments
Loading...