# Live speech translator

> Live speech translator is an open-source agent skill for design and media. Sets up and runs a local speech-to-speech translator on Amazon Transcribe, Translate. 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/live-speech-translator
- **Repository:** https://github.com/aws-samples/amazon-ai-samples
- **GitHub stars:** 469
- **License:** MIT-0
- **Skill name:** live-speech-translator
- **Collection:** https://github.com/aws-samples/amazon-ai-samples
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), web localization
- **Listing updated:** 2026-12-03

## About

This sample is a local app that listens to a microphone, waits for each finished spoken phrase, translates it, and plays the translation back through a Polly voice. The skill walks the agent through prerequisites such as Python, PortAudio, microphone permissions and AWS credentials from the default chain, then through a preflight check that verifies devices, configuration and the voice and engine pair before a live session starts.

The skill covers the common setup and tuning tasks: listing and selecting audio devices, choosing source and target languages, auto-detecting the source language, matching a Polly voice to the target language, and choosing between simultaneous and half-duplex playback to avoid feedback loops. It also includes a troubleshooting table for voice, device, audio library and transcription failures.

It expects an AWS account with Transcribe streaming, Translate and Polly permissions, and optionally Comprehend for automatic language detection. Audio and transcripts are sent to AWS, so the skill notes that Transcribe is billed per streamed minute while the app runs. It also gives guidance for building a similar app, such as translating only finished segments and keeping AWS calls on a server.

## When your agent uses it

> Set up, run, configure, and troubleshoot the local Live Speech Translator in text-to-speech/use-cases/live-speech-translator (Amazon Transcribe Streaming -> Amazon Translate -> Amazon Polly, with microphone/speaker device selection and a preflight check). Use when asked to run or demo live speech translation, change source/target languages or the Polly voice, pick audio devices, fix feedback loops, unsupported voice/engine errors, PortAudio/sounddevice errors, or language-detection problems, or to design a similar speech-to-speech translation app on AWS.

## 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/live-speech-translator)
- [License: MIT-0](https://github.com/aws-samples/amazon-ai-samples/tree/HEAD/text-to-speech/skills/live-speech-translator)

## Features

- **Preflight environment check:** Verifies local audio devices, AWS configuration and the Polly voice and engine pair before a session.
- **Device selection:** Lists microphone and speaker devices and selects them by index or name when defaults are wrong.
- **Language and voice setup:** Guides choosing source and target languages, auto-detection and a Polly voice matched to the target language.
- **Feedback loop control:** Explains simultaneous versus half-duplex modes and when to use headphones to stop self-translation.
- **Troubleshooting guide:** Maps common errors for voices, PortAudio, permissions and live transcription to fixes.
- **Design guidance for similar apps:** Covers translating finished segments, bounded queues, skipping same-language output and production AWS architecture.

## Good for

- Run a live English to Spanish speech translation demo on my laptop
- Pick the right microphone and speaker for the translator
- Fix an unsupported Polly voice or engine error
- Change the target language and matching Polly voice
- Stop my translator from translating its own playback
- Plan an AWS speech-to-speech translation app for a web product

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/live-speech-translator` 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/live-speech-translator &&
cp -R "$tmp/text-to-speech/skills/live-speech-translator" ~/.claude/skills/live-speech-translator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/live-speech-translator` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/live-speech-translator` 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/live-speech-translator &&
cp -R "$tmp/text-to-speech/skills/live-speech-translator" ~/.agents/skills/live-speech-translator &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/live-speech-translator` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/live-speech-translator` 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/live-speech-translator &&
cp -R "$tmp/text-to-speech/skills/live-speech-translator" ~/.cursor/skills/live-speech-translator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/live-speech-translator` 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/live-speech-translator
```

Or copy the folder to `~/.gemini/skills/live-speech-translator` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/live-speech-translator`:

```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/live-speech-translator &&
cp -R "$tmp/text-to-speech/skills/live-speech-translator" ~/.copilot/skills/live-speech-translator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/live-speech-translator` 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/live-speech-translator` into your agent's skills folder as `live-speech-translator`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What AWS services does the translator use?

It streams microphone audio to Amazon Transcribe, translates finished segments with Amazon Translate, and speaks the result with Amazon Polly. Automatic source detection also uses Comprehend.

### Does the sample create any AWS infrastructure?

No. The sample creates no AWS infrastructure and has no LLM, dialogue state or tools.

### How do I avoid the app translating its own output?

Use headphones in the default simultaneous mode, or run with half-duplex mode when using open speakers, which sends silence to Transcribe during playback.

### What do I need installed to run Live speech translator?

Python 3.10 or newer, the sample's requirements, working microphone and speaker access, and PortAudio for the sounddevice library.

### How do I install Live speech translator in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/live-speech-translator to use it in all your projects, or to .claude/skills/live-speech-translator in one project.

### Does Live speech translator 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 Live speech translator?

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 Live speech translator?

The closest alternatives to Live speech translator are Cascading voice agent, Reachy voice assistant, Content to audio, Polly avatar and Text agent to strands voice agent.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Cascading voice agent](https://ai-powered.com/skills/cascading-voice-agent): Cascading 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.
- [Content to audio](https://ai-powered.com/skills/content-to-audio): Content to audio is an open-source agent skill for design and media.
- [Polly avatar](https://ai-powered.com/skills/polly-avatar): Polly avatar is an open-source agent skill for cloud and infrastructure.
- [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.
- [Azure AI transcription py](https://ai-powered.com/skills/azure-ai-transcription-py): Azure AI transcription py is an open-source agent skill for design and media.
- [Azure speech to text REST py](https://ai-powered.com/skills/azure-speech-to-text-rest-py): Azure speech to text REST py is an open-source agent skill for design and media.
- [Transcribe](https://ai-powered.com/skills/transcribe-openai): Transcribe is a free agent skill for design and media.

---
Source: https://ai-powered.com/skills/live-speech-translator
