Edge TTS — Text-to-Speech
/install tts-cosyvoice
Edge TTS — Text-to-Speech
Use to convert text to speech using Microsoft Edge's free TTS service. No API key required.
Voices
Chinese (Recommended)
| Voice | Gender | Style |
|---|---|---|
zh-CN-XiaoxiaoNeural |
Female | Warm, natural (default) |
zh-CN-YunxiNeural |
Male | Young, casual |
zh-CN-YunjianNeural |
Male | Professional, news |
zh-CN-XiaoyiNeural |
Female | Cute, young |
zh-CN-YunyangNeural |
Male | News broadcaster |
zh-CN-XiaochenNeural |
Female | Child |
zh-TW-HsiaoChenNeural |
Female | Traditional Chinese |
English
| Voice | Gender | Style |
|---|---|---|
en-US-JennyNeural |
Female | Friendly (default) |
en-US-GuyNeural |
Male | Professional |
en-GB-SoniaNeural |
Female | British |
Script
{baseDir}/scripts/tts.py --text "Hello world" --output /tmp/output.mp3
Options
| Option | Default | Description |
|---|---|---|
--text |
(required) | Text to speak |
--voice |
zh-CN-XiaoxiaoNeural | Voice ID |
--output |
/tmp/tts_output.mp3 | Output file path |
--rate |
0% | Speed adjustment (-50% to +100%) |
--pitch |
0Hz | Pitch adjustment (-50Hz to +50Hz) |
--volume |
0% | Volume adjustment (-100% to +100%) |
--file |
Read text from file instead of --text |
Examples
# Basic Chinese TTS
{baseDir}/scripts/tts.py --text "你好,我是Nova" --output /tmp/hello.mp3
# Male voice, faster speech
{baseDir}/scripts/tts.py --text "Hello world" --voice en-US-GuyNeural --rate +20% --output /tmp/fast.mp3
# Read from file
{baseDir}/scripts/tts.py --file script.txt --output /tmp/script.mp3
Available Voices
List all voices:
{baseDir}/scripts/tts.py --list-voices zh
{baseDir}/scripts/tts.py --list-voices en
{baseDir}/scripts/tts.py --list-voices ja
Dependencies
edge-tts(pip install)- No API key needed — uses Microsoft Edge's free TTS service
- Requires internet connection
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install tts-cosyvoice - After installation, invoke the skill by name or use
/tts-cosyvoice - Provide required inputs per the skill's parameter spec and get structured output
What is Edge TTS — Text-to-Speech?
Text-to-Speech via Edge TTS (Microsoft Azure voices). Free, no API key needed, supports 100+ voices in 50+ languages including Chinese and English. It is an AI Agent Skill for Claude Code / OpenClaw, with 106 downloads so far.
How do I install Edge TTS — Text-to-Speech?
Run "/install tts-cosyvoice" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Edge TTS — Text-to-Speech free?
Yes, Edge TTS — Text-to-Speech is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Edge TTS — Text-to-Speech support?
Edge TTS — Text-to-Speech is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Edge TTS — Text-to-Speech?
It is built and maintained by vincentlau2046-sudo (@vincentlau2046-sudo); the current version is v1.2.0.