Introducing Amazon Polly Bidirectional Streaming: Real-time speech synthesis for conversational AI
AWS•Announcement••by Praveen Gadi, Damian Pukaluk, Scott Mishra and Paul Wu•AWS Artificial Intelligence Blog
Today, we’re excited to announce the new Bidirectional Streaming API for Amazon Polly, enabling streamlined real-time text-to-speech (TTS) synthesis where you can start sending text and receiving audio simultaneously. This new API is built for conversational AI applications that generate text or audio incrementally, like responses from large language models (LLMs), where users must begin synthesizing audio before the full text is available.
Polly now has a bidirectional streaming API that accepts text as it is generated and returns audio at the same time, over one connection.
Who it is for
Teams building voice assistants on LLM output in Polly who want to cut the wait before speech starts.
Key points
AWS reports 39% less total processing time versus SynthesizeSpeech in its own benchmark (70s vs 115s for 970 words)
Generally Available in the AWS SDK for Java 2.x, JavaScript v3, .NET v4, C++, Go v2, Kotlin, PHP v3, Ruby v3, Rust and Swift; not in Python, CLI or .NET v3 yet
Benchmark used the Generative engine, Matthew voice, MP3 24kHz in us-west-2
AI: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.
AI:AgentCore Runtime now supports bi-directional WebSocket streaming, so agents can listen and respond at the same time, for example in voice conversations.
AI:Nova Sonic can be connected to phone systems through direct SIP, telephony providers such as Vonage, Twilio and Genesys, and open source frameworks Pipecat and LiveKit, with sample implementations for each.