← Back to Skills Marketplace
hamlet0168

Edge Tts Zh

by hamlet0168 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
39
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install edge-tts-zh
Description
中文语音合成(Text-to-Speech),使用Microsoft Edge TTS引擎,无需API key,完全免费。内置中文最佳声音列表(男声/女声/不同风格)。适用于:(1)将文字转为语音消息 (2)新闻/文章朗读 (3)语音通知和提醒 (4)播客/视频配音。支持语速/音调调节和字幕生成。
README (SKILL.md)

\r \r

中文语音合成 (edge-tts)\r

\r 使用 Microsoft Edge TTS 引擎生成高质量中文语音,完全免费。\r \r

快速使用\r

\r

# 基础用法 - 默认男声\r
python3 {baseDir}/scripts/speak.py "你好,今天天气怎么样?"\r
\r
# 指定声音\r
python3 {baseDir}/scripts/speak.py "今日新闻简报" --voice xiaoxiao\r
\r
# 调整语速\r
python3 {baseDir}/scripts/speak.py "慢速朗读" --rate -20%\r
python3 {baseDir}/scripts/speak.py "快速朗读" --rate +30%\r
\r
# 保存到文件\r
python3 {baseDir}/scripts/speak.py "保存这段话" --output speech.mp3\r
\r
# 从文件读取文本\r
python3 {baseDir}/scripts/speak.py --file article.txt --voice xiaoxiao\r
```\r
\r
## 中文声音列表\r
\r
### 推荐声音\r
\r
| 简称 | 全名 | 性别 | 风格 |\r
|------|------|------|------|\r
| yunxi | zh-CN-YunxiNeural | 男 | 自然、年轻 **(推荐)** |\r
| yunyang | zh-CN-YunyangNeural | 男 | 新闻播报 |\r
| yunjian | zh-CN-YunjianNeural | 男 | 阳刚、有力 |\r
| xiaoxiao | zh-CN-XiaoxiaoNeural | 女 | 温暖、活泼 |\r
| xiaoyi | zh-CN-XiaoyiNeural | 女 | 知性、优雅 |\r
| xiaomeng | zh-CN-XiaomengNeural | 女 | 可爱、甜美 |\r
\r
### 其他方言/地区\r
\r
| 简称 | 全名 | 地区 |\r
|------|------|------|\r
| tw-male | zh-TW-YunJheNeural | 台湾男声 |\r
| tw-female | zh-TW-HsiaoChenNeural | 台湾女声 |\r
| hk-male | zh-HK-WanLungNeural | 粤语男声 |\r
| hk-female | zh-HK-HiuGaaiNeural | 粤语女声 |\r
\r
## 参数说明\r
\r
- `--voice NAME` — 声音简称或完整名称(默认: yunxi)\r
- `--rate RATE` — 语速调整,如 `+20%` 或 `-10%`(默认: +10%)\r
- `--pitch PITCH` — 音调调整,如 `+5Hz` 或 `-2st`\r
- `--output FILE` — 输出文件路径(默认: /tmp/tts-output.mp3)\r
- `--file FILE` — 从文件读取文本\r
- `--format FORMAT` — 输出格式: mp3, ogg(默认: mp3)\r
- `--list` — 列出所有可用中文声音\r
\r
## 安装\r
\r
脚本自动检测 edge-tts,未安装时提示:\r
```bash\r
pip install edge-tts\r
```\r
Usage Guidance
Review carefully before installing. The core TTS script does not show credential theft, broad data access, or exfiltration, and VirusTotal/static scan signals are clean. The practical concern is that the package includes undocumented patching scripts and automatic playback behavior. Install only if you are comfortable auditing/removing patch.py and fix.py, and expect generated audio to be played automatically rather than only saved.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
Generating Chinese TTS audio with edge-tts is purpose-aligned, but the shipped speak.py also auto-plays generated audio without the SKILL.md documenting that side effect, and patch/fix scripts modify the installed speak.py rather than providing only synthesis functionality.
Instruction Scope
The main instructions advertise options such as --file, --pitch, --format, and --list, but the actual speak.py only accepts text, voice, rate, and output. Auto-play is not presented as an explicit user-controlled option.
Install Mechanism
No installer or dependency file is present; SKILL.md only tells users to install edge-tts if missing. The package also includes maintenance-like patch scripts that are not documented as part of installation or normal use.
Credentials
The skill uses a hard-coded Windows Administrator path for output and for patching the installed skill. Network use through edge_tts is expected for Microsoft Edge TTS, but the hard-coded local paths and hidden playback behavior are not well scoped.
Persistence & Privilege
scripts/patch.py and scripts/fix.py overwrite the installed skill's speak.py in place without backup, confirmation, integrity checks, or clear user-facing instructions. That is persistent mutation of the skill's runtime code.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install edge-tts-zh
  3. After installation, invoke the skill by name or use /edge-tts-zh
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of edge-tts-zh - Provides high-quality Chinese text-to-speech using Microsoft Edge TTS engine with no API key required. - Features a curated list of the best male and female Chinese voices, including regional dialects. - Supports speech speed and pitch adjustments, subtitle generation, and audio output options. - Suitable for text-to-voice messaging, news/article reading, voice notifications, and podcast/video dubbing. - Scripts included for easy command-line usage and file operations.
Metadata
Slug edge-tts-zh
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Edge Tts Zh?

中文语音合成(Text-to-Speech),使用Microsoft Edge TTS引擎,无需API key,完全免费。内置中文最佳声音列表(男声/女声/不同风格)。适用于:(1)将文字转为语音消息 (2)新闻/文章朗读 (3)语音通知和提醒 (4)播客/视频配音。支持语速/音调调节和字幕生成。 It is an AI Agent Skill for Claude Code / OpenClaw, with 39 downloads so far.

How do I install Edge Tts Zh?

Run "/install edge-tts-zh" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Edge Tts Zh free?

Yes, Edge Tts Zh is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Edge Tts Zh support?

Edge Tts Zh is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Edge Tts Zh?

It is built and maintained by hamlet0168 (@hamlet0168); the current version is v1.0.0.

💬 Comments