Install
openclaw skills install lh-edge-ttsText-to-speech conversion using Python edge-tts for generating audio from text. Supports multiple voices, languages, speed adjustment, pitch control, and subtitle generation. Use when: (1) User requests audio/voice output with the "tts" trigger or keyword. (2) Content needs to be spoken rather than read (multitasking, accessibility, driving, cooking). (3) User wants a specific voice, speed, pitch, or format for TTS output.
openclaw skills install lh-edge-ttsGenerate high-quality text-to-speech audio using Microsoft Edge's neural TTS service via Python edge-tts. Supports multiple languages, voices, adjustable speed/pitch, and subtitle generation (SRT/VTT).
When you detect TTS intent from triggers or user request:
Recognize "tts" keyword as TTS requests. The skill automatically filters out TTS-related keywords from text before conversion.
For more control, use the bundled scripts directly:
cd scripts
python3 tts_converter.py "Your text" --voice en-US-AriaNeural --rate +10% -o output.mp3
python3 tts_converter.py -f input.txt --voice zh-CN-XiaoxiaoNeural -o output.mp3
python3 tts_converter.py -f input.txt -v zh-CN-YunxiNeural -r "+10%" -o output.mp3 -s output.vtt
Options:
--voice, -v: Voice name (default: en-US-MichelleNeural)--lang, -l: Language code (e.g., en-US, zh-CN)--rate, -r: Rate adjustment (e.g., +10%, -20%)--volume: Volume adjustment (e.g., +0%, -50%)--pitch: Pitch adjustment (e.g., +0Hz, -10Hz)--output, -o: Output file path (default: temp file)--subtitles, -s: Save subtitles to file (.vtt or .srt)--file, -f: Read text from file--proxy, -p: Proxy URL--timeout: Receive timeout in seconds (default: 60)--list-voices, -L: List available voices--lang-filter: Filter voices by language (used with --list-voices)cd scripts
python3 config_manager.py --set voice zh-CN-XiaoxiaoNeural
python3 config_manager.py --set rate "+10%"
python3 config_manager.py --get
python3 config_manager.py --reset
Common voices (use --list-voices for full list):
English:
en-US-MichelleNeural (female, natural, default)en-US-AriaNeural (female, natural)en-US-GuyNeural (male, natural)en-GB-SoniaNeural (female, British)en-GB-RyanNeural (male, British)Chinese:
zh-CN-XiaoxiaoNeural (female)zh-CN-YunyangNeural (male, news style)zh-CN-YunxiNeural (male, natural)Other Languages:
es-ES-ElviraNeural (Spanish)fr-FR-DeniseNeural (French)de-DE-KatjaNeural (German)ja-JP-NanamiNeural (Japanese)ar-SA-ZariyahNeural (Arabic)Rate values use percentage format:
"+0%": Normal speed (default)"-20%" to "-10%": Slow, clear (tutorials, stories, accessibility)"+10%" to "+20%": Slightly fast (summaries)"+30%" to "+50%": Fast (news, efficiency)Main TTS conversion script using edge-tts. Generates audio files with customizable voice, rate, volume, pitch. Supports subtitle generation (VTT/SRT) and voice listing.
Manages persistent user preferences for TTS settings. Stores config in ~/.tts-config.json.
Test different voices and preview audio quality at: https://tts.travisvn.com/
pip install edge-tts
tts tool for simple requests, or scripts/tts_converter.py for customizationcd scripts
python3 tts_converter.py "Hello, this is a test." -o test-output.mp3
python3 tts_converter.py "这是一个测试" -v zh-CN-XiaoxiaoNeural -o test-zh.mp3
python3 tts_converter.py --list-voices --lang-filter zh
python3 config_manager.py --get
python3 config_manager.py --set voice en-US-GuyNeural
python3 config_manager.py --get voice
--output for permanent storage.Neural) provide higher quality