
Cascading voice agent
Guides setup, deployment and debugging of Transcribe-Bedrock-Polly voice agents
Cascading voice agent is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 469
- Last commit
- License
- MIT-0
- Listing updated
Similar skills
About Cascading voice agent
This skill helps an agent choose between four sample implementations of a cascading voice pipeline that chains Amazon Transcribe for speech-to-text, Amazon Bedrock for the language model and Amazon Polly for text-to-speech. The variants differ in framework and hosting: a local Pipecat runner, Pipecat on Amazon Bedrock AgentCore Runtime, LangChain or LangGraph on AgentCore, and LiveKit Agents. The skill points the agent to each variant's README as the authority for commands and files, then adds safety gates and troubleshooting notes that those READMEs leave out.
The guidance covers prerequisites such as Python versions, default credential chains, Bedrock model access and the IAM actions needed at runtime. It spells out confirmation steps before creating AWS resources, before a billed live session, and before running a cleanup script that deletes without prompting. It also lists variant-specific gotchas, such as ARM64 containers, WebSocket frame limits, echo handling and environment-based configuration, along with a validation sequence that runs without AWS calls.
It expects an AWS account with the relevant services enabled, and for the hosted paths, Python 3.12, jq and the chosen LiveKit credentials where applicable. It is not meant for speech-to-speech models such as Nova Sonic.
When your agent uses it
Choose, set up, run, deploy, debug, and clean up the cascading (STT -> LLM -> TTS) voice agent samples in text-to-speech/use-cases/cascading-voice-agent — Amazon Transcribe -> Amazon Bedrock -> Amazon Polly built with Pipecat (local/Daily or on Amazon Bedrock AgentCore Runtime), LangChain/LangGraph on AgentCore, or LiveKit Agents. Use when asked to try or deploy one of these voice agents, pick between the variants, debug no audio / AccessDeniedException / WebSocket or deployment failures, change the Polly voice or Bedrock model, or build a similar voice agent with Transcribe, Bedrock, and Polly. Not for speech-to-speech models such as Nova Sonic.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (8 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/cascading-voice-agent to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cascading-voice-agent &&
cp -R "$tmp/text-to-speech/skills/cascading-voice-agent" ~/.claude/skills/cascading-voice-agent &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/cascading-voice-agent inside it instead.
Copy the skill folder to ~/.agents/skills/cascading-voice-agent to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cascading-voice-agent &&
cp -R "$tmp/text-to-speech/skills/cascading-voice-agent" ~/.agents/skills/cascading-voice-agent &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/cascading-voice-agent inside it instead.
Copy the skill folder to ~/.cursor/skills/cascading-voice-agent to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cascading-voice-agent &&
cp -R "$tmp/text-to-speech/skills/cascading-voice-agent" ~/.cursor/skills/cascading-voice-agent &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/cascading-voice-agent inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/aws-samples/amazon-ai-samples.git --path text-to-speech/skills/cascading-voice-agentOr copy the folder to ~/.gemini/skills/cascading-voice-agent yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/cascading-voice-agent:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cascading-voice-agent &&
cp -R "$tmp/text-to-speech/skills/cascading-voice-agent" ~/.copilot/skills/cascading-voice-agent &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/cascading-voice-agent inside it instead.
Get the folder:
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.gitThen copy amazon-ai-samples/text-to-speech/skills/cascading-voice-agent into your agent's skills folder as cascading-voice-agent. Agents that support SKILL.md read one folder per skill.
What it does
- Variant selection guide
- A table that maps the user's goal to one of four pipeline implementations and notes where each runs and whether it creates AWS resources.
- Deployment safety gates
- Required confirmations for account, Region and resources before deploying, plus warnings about billing during live sessions.
- Cleanup procedure notes
- Explains what the cleanup script removes immediately and which resources, such as the ECR repository, may need manual deletion.
- Variant-specific troubleshooting
- Gotchas for each implementation, including ARM64 requirements, WebSocket frame limits, mic muting and LiveKit environment variables.
- Prerequisite checks
- Covers Python versions, AWS credential verification, Bedrock model access and the runtime IAM actions required for Transcribe, Bedrock and Polly.
- Build-your-own pattern guidance
- Lessons on streaming LLM output, sentence-level synthesis, audio format choice, echo control and swapping models or voices through configuration.
Good for
- Try a local voice agent that uses Transcribe, Bedrock and Polly
- Deploy a hosted voice agent to Bedrock AgentCore Runtime
- Debug an AccessDeniedException from Bedrock in a voice agent
- Change the Polly voice or the Bedrock model in a sample
- Build a new cascading voice agent with Transcribe, Bedrock and Polly
Cascading voice agent FAQ
Does Cascading voice agent work for speech-to-speech models?
No. The skill states it is not for speech-to-speech models such as Nova Sonic.
What AWS permissions does a voice agent need at runtime?
transcribe:StartStreamTranscription, bedrock:InvokeModel* and polly:SynthesizeSpeech. Deploying to AgentCore also requires permissions to create IAM roles, ECR repositories, CodeBuild projects and AgentCore runtimes.
Which Bedrock model and Polly voice are used by default?
The default Bedrock model is Amazon Nova 2 Lite via the us.amazon.nova-2-lite-v1:0 inference profile, and the default Polly voices are Tiffany or Joanna with the generative engine.
Does the deployment or cleanup run without confirmation?
Deployment should only run after the user confirms the account, Region and resources. The cleanup script removes the runtime, gateway, IAM role and local state files without prompting.
How do I install Cascading voice agent in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/cascading-voice-agent to use it in all your projects, or to .claude/skills/cascading-voice-agent in one project.
Does Cascading voice agent run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Cascading voice agent?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Cascading voice agent?
The closest alternatives to Cascading voice agent are Polly avatar, Content to audio, Live speech translator, Nemotron voice agent builder and Amazon polly.
Where this comes from
- Description: from the skill's own SKILL.md.
More from aws-samples/amazon-ai-samples

Sets up Claude Code, Codex and OpenCode to run Amazon Ergo 1.0 on Bedrock
- Open source
- 469 GitHub stars
- Cloud and infrastructure

Migrates Gemini Python code and prompts to Amazon Nova 2 Lite on Bedrock
- Open source
- 469 GitHub stars
- AI models and LLM tooling

Ports prompts from other LLMs to Amazon Nova and checks quality with evaluation runs
- Open source
- 469 GitHub stars
- AI models and LLM tooling

Rewrites and optimizes prompts specifically for Amazon Nova 1 models
- Open source
- 469 GitHub stars
- AI models and LLM tooling

Rewrites and tunes prompts for Amazon Nova 2 Lite, including multimodal inputs
- Open source
- 469 GitHub stars
- Design and media

Writes and reviews system prompts and tool descriptions for Nova Sonic 2.5 voice agents
- Open source
- 469 GitHub stars
- AI models and LLM tooling




