AI Cloud Architect

Real-time voice agents with Stream Vision Agents and Amazon Nova 2 Sonic

AWSHow-to by Manasi Bhutada, Jagdeep Singh Soni and Neevash RamdialAWS Artificial Intelligence Blog

In this post, you learn how to combine Stream’s Vision Agents open-source framework with Amazon Bedrock and Amazon Nova 2 Sonic to build real-time voice agents that can be production-ready in minutes. You’ll learn how the integration works under the hood, walk through code examples, and explore advanced capabilities like function calling, automatic reconnection, and multilingual voice support.

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

AI: Summary

What it is

Nova 2 Sonic, a speech-to-speech model on Bedrock, can be run as a real-time voice agent through Stream's open-source Vision Agents framework, with function calling and a Polly TTS option for custom pipelines.

Who it is for

Developers building voice agents on AWS who want to avoid writing WebRTC and reconnection logic themselves.

Key points

  • Authors say a basic agent takes under 30 lines of Python using the aws.Realtime plugin.
  • Nova 2 Sonic handles speech-to-text, reasoning and text-to-speech in one model, so no separate STT or TTS service is needed.
  • Function calling is supported during live conversation via a decorator.
  • Stream's free tier is stated as 333,000 participant minutes per month; Bedrock usage is billed.

The same at other vendors

Timeline

  1. What it explainsAnnouncing Amazon Nova 2 Sonic for real-time conversational AI · AWS · AnnouncementAlso published by AWS News Blog
  2. Works withBuild real-time voice streaming applications with Amazon Nova Sonic and WebRTC · AWS · Blog post
  3. This postReal-time voice agents with Stream Vision Agents and Amazon Nova 2 Sonic

Go deeper