Skip to content
Skill

Live speech translator

Sets up and runs a local speech-to-speech translator on Amazon Transcribe, Translate

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

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.

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 (5 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/live-speech-translator 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/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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/live-speech-translator 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/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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/live-speech-translator 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/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.

Cursor docs on skills

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/live-speech-translator

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from aws-samples/amazon-ai-samples

  1. Sets up Claude Code, Codex and OpenCode to run Amazon Ergo 1.0 on Bedrock

    • Open source
    • 469 GitHub stars
    • Cloud and infrastructure
  2. Migrates Gemini Python code and prompts to Amazon Nova 2 Lite on Bedrock

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

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

    • Open source
    • 469 GitHub stars
    • AI models and LLM tooling
  5. Rewrites and tunes prompts for Amazon Nova 2 Lite, including multimodal inputs

    • Open source
    • 469 GitHub stars
    • Design and media
  6. 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