Edge tts

From malue-ai/dazee-small · View interactive version

Edge tts is an AI agent skill from the GitHub repository malue-ai/dazee-small. Free text-to-speech using Microsoft Edge's online TTS service. No API key required.

How to use this skill

Skill file

Edge TTS 免费语音合成

使用微软 Edge 的在线 TTS 服务生成语音,免费,无需 API Key,支持 300+ 种声音。

使用场景

执行方式

命令行用法

# 基本用法
edge-tts --text "你好,今天天气真不错" --write-media output.mp3

# 指定声音
edge-tts --voice zh-CN-XiaoxiaoNeural --text "你好" --write-media output.mp3

# 带字幕
edge-tts --voice zh-CN-XiaoxiaoNeural --text "你好" \
  --write-media output.mp3 --write-subtitles output.vtt

Python API

import edge_tts
import asyncio

async def generate():
    communicate = edge_tts.Communicate("你好,这是测试语音。", "zh-CN-XiaoxiaoNeural")
    await communicate.save("output.mp3")

asyncio.run(generate())

推荐中文声音

| Voice | 性别 | 风格 |

|---|---|---|

| zh-CN-XiaoxiaoNeural | 女 | 温暖亲切(推荐) |

| zh-CN-XiaoyiNeural | 女 | 活泼 |

| zh-CN-YunjianNeural | 男 | 专业播报 |

| zh-CN-YunxiNeural | 男 | 年轻自然 |

列出所有可用声音

edge-tts --list-voices | grep zh-CN

调节语速和音调

edge-tts --voice zh-CN-XiaoxiaoNeural \
  --rate "+20%" --pitch "+5Hz" \
  --text "加速播放" --write-media output.mp3

输出规范

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.