agentleFS
lisniuselisniuse/edge-tts/SKILL.md

edge-tts

Skill0 starsChanged 9 months agoMITView on GitHub

Text-to-speech synthesis using Microsoft Edge's free TTS service. Use when users request converting text to audio, generating speech from text, creating audio files, or mention TTS, text-to-speech, voice synthesis, or want to convert txt files to mp3/wav. Supports Chinese and other languages with multiple voices, adjustable speed and volume.

  • Installs packages

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. aahl/skills★ 159same name
    2. opencue/cuecards★ 6same name
    3. cadecode/agent-skills★ 1same name
    4. wangfeiwest2025/openclaw-integration-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read from a file instead of inline text:

    line 100
  2. Distinctive:

    When processing multiple texts or creating multiple voice versions:

    line 111
  3. Distinctive:

    Check internet connection (Edge TTS requires online access)

    line 142
  4. Very specific:

    Verify the voice name is correct (use --list-voices)

    line 143
  5. Distinctive:

    Ensure output directory exists and is writable

    line 144
  6. Distinctive:

    Check that the text encoding is UTF-8 for non-ASCII characters

    line 145

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Edge TTS - Text-to-Speech Synthesis

Convert text to natural-sounding speech using Microsoft Edge's free TTS service.

Quick Start

Generate audio from text:

python scripts/edge_tts_synthesizer.py -t "你好,世界!" -o output.mp3

Generate audio from a text file:

python scripts/edge_tts_synthesizer.py -f input.txt -o output.mp3

Common Usage Patterns

Basic text synthesis

For simple text-to-speech:

python scripts/edge_tts_synthesizer.py \
  -t "Your text here" \
  -o output.mp3

Using different voices

Choose from available voices (default is zh-CN-XiaoxiaoNeural - female voice):

# Male voice (Yunxi)
python scripts/edge_tts_synthesizer.py \
  -t "这是男声示例" \
  -o output.mp3 \
  -v zh-CN-YunxiNeural

# Female voice (Xiaoyi)
python scripts/edge_tts_synthesizer.py \
  -t "这是女声示例" \
  -o output.mp3 \
  -v zh-CN-XiaoyiNeural

Common Chinese voices:

  • zh-CN-XiaoxiaoNeural - 晓晓 (female, default)
  • zh-CN-YunxiNeural - 云希 (male)
  • zh-CN-XiaoyiNeural - 晓伊 (female)
  • zh-CN-YunjianNeural - 云健 (male)
  • zh-CN-YunyangNeural - 云扬 (male)

To list all available voices:

python scripts/edge_tts_synthesizer.py --list-voices

Adjusting speed and volume

Control speech rate and volume:

# Faster speech (+50%)
python scripts/edge_tts_synthesizer.py \
  -t "快速朗读" \
  -o output.mp3 \
  --rate +50%

# Slower speech (-20%)
python scripts/edge_tts_synthesizer.py \
  -t "慢速朗读" \
  -o output.mp3 \
  --rate -20%

# Louder volume (+30%)
python scripts/edge_tts_synthesizer.py \
  -t "大声朗读" \
  -o output.mp3 \
  --volume +30%

# Combined adjustments
python scripts/edge_tts_synthesizer.py \
  -t "又快又大声" \
  -o output.mp3 \
  --rate +50% \
  --volume +20%

Processing text files

Read from a file instead of inline text:

python scripts/edge_tts_synthesizer.py \
  -f input.txt \
  -o output.mp3 \
  -v zh-CN-XiaoxiaoNeural

Batch processing

When processing multiple texts or creating multiple voice versions:

# Create multiple voice versions
for voice in zh-CN-XiaoxiaoNeural zh-CN-YunxiNeural zh-CN-XiaoyiNeural; do
  python scripts/edge_tts_synthesizer.py \
    -t "同样的文本,不同的声音" \
    -o "output_${voice}.mp3" \
    -v "$voice"
done

# Process multiple text files
for file in *.txt; do
  python scripts/edge_tts_synthesizer.py \
    -f "$file" \
    -o "${file%.txt}.mp3"
done

Output Format

The script supports multiple audio formats:

  • .mp3 (recommended for smaller file size)
  • .wav (recommended for higher quality)
  • Other formats supported by Edge TTS

Specify the format via the output filename extension.

Error Handling

If synthesis fails:

  1. Check internet connection (Edge TTS requires online access)
  2. Verify the voice name is correct (use --list-voices)
  3. Ensure output directory exists and is writable
  4. Check that the text encoding is UTF-8 for non-ASCII characters

Dependencies

This script requires the edge-tts Python package. Install with:

pip install edge-tts

The script handles this automatically via the import, but users need the package installed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.