AI Cloud Architect

Build real-time voice streaming applications with Amazon Nova Sonic and WebRTC

AWSBlog post by Zihang Huang, Bin Chen, Lana Zhang and Siva SomasundaramAWS Artificial Intelligence Blog

Building end-to-end live streaming applications with real-time voice interaction presents several challenges. This post introduces a solution based on Amazon Nova 2 Sonic (Nova Sonic) and Amazon Kinesis Video Streams WebRTC (WebRTC) that addresses these challenges. In this post, we’ll walk through the solution architecture, implementation patterns, and two real-world scenario examples.

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

AI: Summary

What it is

Shows a WebRTC-based speech-to-speech design that pairs Nova Sonic with Kinesis Video Streams WebRTC for low-latency voice agents, with open-source samples.

Who it is for

Teams building voice agents for IoT, smart home or connected vehicles that need low latency on weak networks.

Key points

  • Server-side voice activity detection is used to cut noise and audio tokens sent to Nova Sonic.
  • Audio must be converted from stereo 48kHz to mono 16kHz Int16-to-Float32 for the Nova Sonic API.
  • Two GitHub samples are provided: a smart home example using an MCP server for AWS IoT Core and a connected vehicle example.

The same at other vendors

Timeline

  1. This postBuild real-time voice streaming applications with Amazon Nova Sonic and WebRTC
  2. Works withReal-time voice agents with Stream Vision Agents and Amazon Nova 2 Sonic · AWS · How-to

Go deeper