# Cascading voice agent

> Cascading voice agent is an open-source agent skill for design and media. Guides setup, deployment and debugging of Transcribe-Bedrock-Polly voice agents. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/aws-samples/amazon-ai-samples/tree/main/text-to-speech/skills/cascading-voice-agent
- **Repository:** https://github.com/aws-samples/amazon-ai-samples
- **GitHub stars:** 469
- **License:** MIT-0
- **Skill name:** cascading-voice-agent
- **Collection:** https://github.com/aws-samples/amazon-ai-samples
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/aws-samples/amazon-ai-samples/tree/HEAD/text-to-speech/skills/cascading-voice-agent)
- [License: MIT-0](https://github.com/aws-samples/amazon-ai-samples/tree/HEAD/text-to-speech/skills/cascading-voice-agent)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/cascading-voice-agent` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/cascading-voice-agent` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/cascading-voice-agent` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aws-samples/amazon-ai-samples.git --path text-to-speech/skills/cascading-voice-agent
```

Or copy the folder to `~/.gemini/skills/cascading-voice-agent` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/cascading-voice-agent`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-samples/amazon-ai-samples.git
```

Then 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.

## 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.

## Alternatives

- [Polly avatar](https://ai-powered.com/skills/polly-avatar): Polly avatar is an open-source agent skill for cloud and infrastructure.
- [Content to audio](https://ai-powered.com/skills/content-to-audio): Content to audio is an open-source agent skill for design and media.
- [Live speech translator](https://ai-powered.com/skills/live-speech-translator): Live speech translator is an open-source agent skill for design and media.
- [Nemotron voice agent builder](https://ai-powered.com/skills/nemotron-voice-agent-builder): Nemotron voice agent builder is an open-source agent skill for design and media.
- [Amazon polly](https://ai-powered.com/skills/amazon-polly): Amazon polly is an open-source agent skill for developer tools.
- [Text agent to strands voice agent](https://ai-powered.com/skills/text-agent-to-strands-voice-agent): Text agent to strands voice agent is an open-source agent skill for design and media.
- [Reachy voice assistant](https://ai-powered.com/skills/reachy-voice-assistant): Reachy voice assistant is an open-source agent skill for design and media.
- [Speech](https://ai-powered.com/skills/speech): Speech is a free agent skill for design and media.

---
Source: https://ai-powered.com/skills/cascading-voice-agent
