Skip to main content
skill CX Codex

edge-tts — Claude Code skill: what it does, how to install

Generates MP3 audio from text using Microsoft Edge neural voices through uvx edge-tts. Useful when listening is more convenient than reading while cooking or driving.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aahl/skills --skill edge-tts -a claude-code
Open on GitHub

What edge-tts does

The skill runs uvx edge-tts in your terminal to transform text inputs into audio files. Your environment must have uvx available, because the command relies on it to fetch and execute the speech engine directly.

It supports adjustments for speech rate and pitch using command flags like --rate or --pitch. You can also generate matching subtitle streams directly to standard output or a file with --write-subtitles.

Voice selection is handled through the --voice argument. When you need to inspect supported accents or languages, the command uvx edge-tts --list-voices outputs the full catalog of available speakers.

What it helps with

  • convert text into MP3 audio using neural voice models
  • generate synchronized subtitles alongside the audio file
  • adjust playback rate and pitch of generated speech
  • switch between different language speakers via the --voice flag

Example prompts for the agent

  • Convert this text to speech and save it as audio.mp3
  • Run tts for this summary using voice en-US-JennyNeural
  • Check available speakers with uvx edge-tts --list-voices

How to install edge-tts

1Skills CLI (Vercel)

npx skills add aahl/skills --skill edge-tts -a claude-code

2Manually: put the files in place

~/.claude/skills/edge-tts/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/edge-tts/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about edge-tts

How to install edge-tts in Claude Code?

Run npx skills add aahl/skills --skill edge-tts -a claude-code. This registers the skill for your Claude Code workspace.

What does edge-tts do?

It converts text into speech by invoking uvx edge-tts, producing MP3 audio with customizable voices and speed parameters.

What dependencies are needed to use edge-tts?

You need the uvx runner installed in your terminal environment. Without uvx, the underlying synthesis commands cannot execute.

Source text

SKILL.md · MIT
---
name: edge-tts
description: Text-to-speech conversion using `uvx edge-tts` for generating audio from text. Use when (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS output.
---

# Edge-TTS

Generate high-quality text-to-speech audio using Microsoft Edge's neural TTS service via the `uvx edge-tts` command.
Supports multiple languages, voices, adjustable speed/pitch, and subtitle generation.

## Usage
```shell
uvx edge-tts --text "{msg}" --write-media {tempdir}/{filename}.mp3

# With subtitles
uvx edge-tts --text "{msg}" --write-media {tempdir}/{filename}.mp3 --write-subtitles -
```

## Changing rate(speed), volume and pitch
```shell
uvx edge-tts --text "{msg}" --write-media {tempdir}/{filename}.mp3 --rate=+50%
uvx edge-tts --text "{msg}" --write-media {tempdir}/{filename}.mp3 --volume=+50% --pitch=-50Hz
```

## Changing the voice
```shell
uvx edge-tts --text "{msg}" --write-media {tempdir}/{filename}.mp3 --voice zh-CN-XiaoxiaoNeural
```

## Available voices
```
Name                               Gender    ContentCategories      VoicePersonalities
en-GB-LibbyNeural                  Female    General                Friendly, Positive
en-GB-RyanNeural                   Male      General                Friendly, Positive
en-GB-SoniaNeural                  Female    General                Friendly, Positive
en-GB-ThomasNeural                 Male      General                Friendly, Positive
en-HK-SamNeural                    Male      General                Friendly, Positive
en-HK-YanNeural                    Female    General                Friendly, Positive
en-US-AnaNeural                    Female    Cartoon, Conversation  Cute
en-US-AndrewMultilingualNeural     Male      Conversation, Copilot  Warm, Confident, Authentic, Honest
en-US-AndrewNeural                 Male      Conversation, Copilot  Warm, Confident, Authentic, Honest
en-US-AriaNeural                   Female    News, Novel            Positive, Confident
en-US-AvaMultilingualNeural        Female    Conversation, Copilot  Expressive, Caring, Pleasant, Friendly
en-US-AvaNeural                    Female    Conversation, Copilot  Expressive, Caring, Pleasant, Friendly
en-US-BrianMultilingualNeural      Male      Conversation, Copilot  Approachable, Casual, Sincere
en-US-BrianNeural                  Male      Conversation, Copilot  Approachable, Casual, Sincere
en-US-ChristopherNeural            Male      News, Novel            Reliable, Authority
en-US-EmmaMultilingualNeural       Female    Conversation, Copilot  Cheerful, Clear, Conversational
en-US-EmmaNeural                   Female    Conversation, Copilot  Cheerful, Clear, Conversational
en-US-EricNeural                   Male      News, Novel            Rational
en-US-GuyNeural                    Male      News, Novel            Passion
en-US-JennyNeural                  Female    General                Friendly, Considerate, Comfort
en-US-MichelleNeural               Female    News, Novel            Friendly, Pleasant
en-US-RogerNeural                  Male      News, Novel            Lively
en-US-SteffanNeural                Male      News, Novel            Rational
fr-FR-DeniseNeural                 Female    General                Friendly, Positive
fr-FR-HenriNeural                  Male      General                Friendly, Positive
zh-CN-XiaoxiaoNeural               Female    News, Novel            Warm
zh-CN-YunjianNeural                Male      Sports,  Novel         Passion
zh-CN-liaoning-XiaobeiNeural       Female    Dialect                Humorous
zh-CN-shaanxi-XiaoniNeural         Female    Dialect                Bright
zh-HK-HiuGaaiNeural                Female    General                Friendly, Positive
zh-HK-WanLungNeural                Male      General                Friendly, Positive
zh-TW-HsiaoChenNeural              Female    General                Friendly, Positive
zh-TW-YunJheNeural                 Male      General                Friendly, Positive
```

Retrieve all available voices using shell commands:
```shell
uvx edge-tts --list-voices
```

© aahl · MIT · aahl/skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set8

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor