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
AWS Quick adds AI-native Docs, Sheets and Slides, with Docs in preview in December
AWS is adding AI-native documents, spreadsheets and presentations to AWS Quick. Quick Docs enters preview in December, with Quick Sheets and Quick Slides following in January 2027, included in Quick's existing pricing.
Google Antigravity adds Orchestrator, /swarm and Remote Agents, coordinating Gemini 4 Neon, Hydrogen and Carbon
Google DeepMind's Antigravity now includes Orchestrator, /swarm and Remote Agents, built around Gemini 4 Neon, Hydrogen and Carbon. Google claims Orchestrator reaches near-Carbon success rates on Terminal-Bench 4.0 while finishing tasks 19% faster and using 24% less quota.
GitHub Copilot code review combines independent AI reviewers to find more bugs with less noise
GitHub has published a post describing how Copilot code review combines independent AI reviewers to find more bugs with less noise. The post, titled "More agents, fewer blind spots: Inside GitHub Copilot code review," appeared on The GitHub Blog.
Anthropic expands redesigned Claude Projects beta to Team and Enterprise plans
Anthropic expanded its redesigned Claude Projects beta to Team and Enterprise plans on November 30, 2026. New projects center on a main conversation, called the coordinator, that routes requests into separate threads running in parallel across research, documents and code.
Comments
Loading...