Edge TTS — Text-to-Speech

Data & APIs

Text-to-Speech via Edge TTS (Microsoft Azure voices). Free, no API key needed, supports 100+ voices in 50+ languages including Chinese and English.

Install

openclaw skills 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)

VoiceGenderStyle
zh-CN-XiaoxiaoNeuralFemaleWarm, natural (default)
zh-CN-YunxiNeuralMaleYoung, casual
zh-CN-YunjianNeuralMaleProfessional, news
zh-CN-XiaoyiNeuralFemaleCute, young
zh-CN-YunyangNeuralMaleNews broadcaster
zh-CN-XiaochenNeuralFemaleChild
zh-TW-HsiaoChenNeuralFemaleTraditional Chinese

English

VoiceGenderStyle
en-US-JennyNeuralFemaleFriendly (default)
en-US-GuyNeuralMaleProfessional
en-GB-SoniaNeuralFemaleBritish

Script

{baseDir}/scripts/tts.py --text "Hello world" --output /tmp/output.mp3

Options

OptionDefaultDescription
--text(required)Text to speak
--voicezh-CN-XiaoxiaoNeuralVoice ID
--output/tmp/tts_output.mp3Output file path
--rate0%Speed adjustment (-50% to +100%)
--pitch0HzPitch adjustment (-50Hz to +50Hz)
--volume0%Volume adjustment (-100% to +100%)
--fileRead 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