# AI voiceover edge tts

> AI voiceover edge tts is an open-source agent skill for design and media. Generates sentence-by-sentence Chinese and English voice-overs for short videos. 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/xianyu110/ecommerce-video-skills/tree/main/skills/ai-voiceover-edge-tts
- **Repository:** https://github.com/xianyu110/ecommerce-video-skills
- **GitHub stars:** 164
- **License:** MIT
- **Skill name:** ai-voiceover-edge-tts
- **Collection:** https://github.com/xianyu110/ecommerce-video-skills
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-03

## About

This skill turns a short-video script into audio clips using the free edge-tts library, which calls Microsoft Edge's online voices. The bundled Python script synthesizes each line, trims leading and trailing silence, exports 48 kHz WAV files and writes a durations.json file so subtitles and shot lengths can be aligned to the real narration. Results are cached so unchanged lines are not regenerated.

The workflow starts by rewriting the script into short spoken lines, roughly 8 to 20 characters each, with numbers and model codes written as they should be read aloud. The guide includes a voice table for Mandarin, Taiwanese, Cantonese and English voices, plus advice on speaking rate and pitch. A prompt template is included for asking an agent to produce a spoken version alongside a subtitle version.

It expects Python with the edge-tts package installed, ffmpeg on the path, and network access to Microsoft's TTS service. A storyboard JSON file can drive batch synthesis, and the skill notes it can hand off to a separate video assembly skill.

## When your agent uses it

> AI 口播配音：用免费的 edge-tts（微软 Edge 在线语音）为带货短视频逐句生成配音，自动去首尾静音、统计每句时长、缓存复用，可选音色/语速/音调，并给出口播稿改写规则。Use when the user needs a voice-over, 配音, 口播, 旁白, TTS, text-to-speech, AI 主播声音, or wants to turn a script into audio for 抖音 / TikTok / 视频号 videos.

## What it can access

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

- [Runs Python scripts](https://github.com/xianyu110/ecommerce-video-skills/tree/HEAD/skills/ai-voiceover-edge-tts)
- [No network calls found in its scripts](https://github.com/xianyu110/ecommerce-video-skills/tree/HEAD/skills/ai-voiceover-edge-tts)
- [License: MIT](https://github.com/xianyu110/ecommerce-video-skills/tree/HEAD/skills/ai-voiceover-edge-tts)

## Features

- **Sentence-level speech synthesis:** Generates one audio file per script line using selectable Microsoft Edge neural voices.
- **Silence trimming and timing:** Removes leading and trailing silence and records each clip's duration in a JSON file.
- **Spoken script rewriting:** Provides rules for converting numbers, abbreviations and brand names into speakable text.
- **Voice and rate guidance:** Recommends voices by sales style and suggests speaking rate and pitch ranges to test.
- **Caching and retries:** Reuses previously generated clips and retries the TTS request when the network fails.
- **Failure fixes checklist:** Lists common problems such as pronunciation errors, long pauses and flat delivery, with fixes.

## Good for

- Create a voice-over for a product promotion video
- Convert a TikTok or Douyin script into timed audio clips
- Generate an English narration track for a short ad
- Rewrite marketing copy into lines that read naturally aloud
- Batch-produce narration for each shot of a storyboard

## Install

### Claude Code

This skill ships in the `ecommerce-video-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add xianyu110/ecommerce-video-skills
/plugin install ecommerce-video-skills@ecommerce-video-skills
```

Or copy only this skill to `~/.claude/skills/ai-voiceover-edge-tts`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xianyu110/ecommerce-video-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ai-voiceover-edge-tts &&
cp -R "$tmp/skills/ai-voiceover-edge-tts" ~/.claude/skills/ai-voiceover-edge-tts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ai-voiceover-edge-tts` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ai-voiceover-edge-tts` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xianyu110/ecommerce-video-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ai-voiceover-edge-tts &&
cp -R "$tmp/skills/ai-voiceover-edge-tts" ~/.agents/skills/ai-voiceover-edge-tts &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ai-voiceover-edge-tts` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ai-voiceover-edge-tts` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xianyu110/ecommerce-video-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ai-voiceover-edge-tts &&
cp -R "$tmp/skills/ai-voiceover-edge-tts" ~/.cursor/skills/ai-voiceover-edge-tts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ai-voiceover-edge-tts` 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/xianyu110/ecommerce-video-skills.git --path skills/ai-voiceover-edge-tts
```

Or copy the folder to `~/.gemini/skills/ai-voiceover-edge-tts` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ai-voiceover-edge-tts`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xianyu110/ecommerce-video-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ai-voiceover-edge-tts &&
cp -R "$tmp/skills/ai-voiceover-edge-tts" ~/.copilot/skills/ai-voiceover-edge-tts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ai-voiceover-edge-tts` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/xianyu110/ecommerce-video-skills.git
```

Then copy `ecommerce-video-skills/skills/ai-voiceover-edge-tts` into your agent's skills folder as `ai-voiceover-edge-tts`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need installed to use AI voiceover edge tts?

The skill needs Python with the edge-tts package, ffmpeg, and network access to Microsoft's online TTS service.

### What does the script output?

It writes WAV clips for each line, trimmed of silence at 48 kHz, plus a durations.json file with timing for each clip.

### Which voices are available?

The guide lists Mandarin voices such as YunxiNeural and XiaoxiaoNeural, Taiwanese and Hong Kong voices, and English voices such as AndrewNeural, AvaNeural and EmmaNeural.

### Can AI voiceover edge tts run offline?

Synthesis requires access to Microsoft's service, but the guide mentions a no-TTS option in the assembly script to preview visuals without audio.

### How do I install AI voiceover edge tts in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ai-voiceover-edge-tts to use it in all your projects, or to .claude/skills/ai-voiceover-edge-tts in one project. Or install the ecommerce-video-skills plugin, which includes it: /plugin marketplace add xianyu110/ecommerce-video-skills, then /plugin install ecommerce-video-skills@ecommerce-video-skills.

### Does AI voiceover edge tts run scripts?

Yes. It runs Python scripts. No network calls were found in its 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 AI voiceover edge tts?

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 AI voiceover edge tts?

The closest alternatives to AI voiceover edge tts are Multilingual dubbing, Speech, Ffmpeg auto assemble, Motion video and Speak summary.

## Where this comes from

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

## Alternatives

- [Multilingual dubbing](https://ai-powered.com/skills/multilingual-dubbing): Multilingual dubbing 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.
- [Ffmpeg auto assemble](https://ai-powered.com/skills/ffmpeg-auto-assemble): Ffmpeg auto assemble is an open-source agent skill for design and media.
- [Motion video](https://ai-powered.com/skills/motion-video): Motion video is an open-source agent skill for design and media.
- [Speak summary](https://ai-powered.com/skills/speak-summary): Speak summary is an open-source agent skill for design and media.
- [Lead media edit](https://ai-powered.com/skills/lead-media-edit): Lead media edit is an open-source agent skill for design and media.
- [Selling point storyboard](https://ai-powered.com/skills/selling-point-storyboard): Selling point storyboard is an open-source agent skill for design and media.
- [Multi model shot prompts](https://ai-powered.com/skills/multi-model-shot-prompts): Multi model shot prompts is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/ai-voiceover-edge-tts
