AI Cloud Architect

Build real-time voice applications with Amazon SageMaker AI and vLLM

AWSHow-to by Christian Kamwangala, Chinmay Bapat, Lingran Xia and Vivek GangasaniAWS Artificial Intelligence Blog

Voice agents, live captioning, contact center analytics, and accessibility tools all depend on real-time speech-to-text, where your application streams audio in and receives transcription back simultaneously over a single persistent connection. Traditional request-response inference falls short here because transcription cannot begin until the entire audio recording has been received, adding latency that breaks the real-time [...]

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

SageMaker AI bidirectional streaming can serve vLLM's Realtime WebSocket API, so audio streams in and transcription streams back over one connection for a speech model.

Who it is for

Teams on SageMaker AI building live captioning, voice agents or contact center analytics that need streaming speech-to-text.

Key points

  • Uses the SageMaker AI vLLM container with a custom bidirectional streaming label and a WebSocket bridge.
  • Audio must be base64 PCM16 at 16 kHz mono; the example uses a single ml.g6.4xlarge (1x NVIDIA L4) instance.
  • SageMaker AI closes the connection if 5 consecutive pings go unanswered, so clients must handle reconnection for long sessions.

The same at other vendors

Timeline

  1. What it explainsAmazon SageMaker AI Inference now supports bidirectional streaming · AWS · AnnouncementAlso published by AWS Artificial Intelligence Blog
  2. This postBuild real-time voice applications with Amazon SageMaker AI and vLLM

Go deeper