Edge TTS Chinese Voice Synthesis Service
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_77841619/edge-tts-voice.
About this skill
What Problem It Solves
When OpenClaw QQBot needs to turn Chinese text into stable voice replies, directly coupling a local synthesis library or a third-party API often creates three practical issues: process crashes can take down the host bot, long text can trigger parameter or encoding failures, and timeout paths may lack recovery behavior. This skill turns Microsoft Edge TTS into a local voice service, giving QQBot a usable Chinese voice output path without replacing the bot framework.
How The Skill Works
The implementation uses a CLI-based service model: the edge-tts Python package handles synthesis, while a Node.js service exposes the voice generation interface. Bot components can call it through 127.0.0.1:5050.
- Voice selection: several Chinese
Neuralvoices are built in, withzh-CN-XiaoxiaoNeuralas the default, pluszh-CN-YunxiNeural,zh-CN-YunjianNeural,zh-CN-XiaoyiNeural, andzh-CN-YunyangNeural. - Long-text handling: very long content is passed through UTF-8 temporary files to avoid Windows command-line length and Chinese encoding issues.
- Stability mechanisms: child-process isolation, a 60-second OS-level timeout, up to 3 retries, and exponential backoff reduce failures caused by transient network conditions.
- Configuration scope: the setup covers dependency checks, workspace deployment,
openclaw.jsonconfiguration, and Windows scheduled tasks, while runtime still requiresPython,Node.js 16+, and network access.
Boundaries And Caveats
This skill fits local Windows deployments where a bot needs Chinese voice replies and the 5050 port is available. It is not a good fit for offline-only environments or fully local TTS requirements. Before enabling it, confirm that edge-tts is installed, the port is free, and firewall rules allow loopback access. The skill does not claim commercial TTS quality guarantees or compliance coverage; it provides a practical synthesis path for Chinese content.
Use Cases
- Add Chinese voice replies to OpenClaw QQBot with free Edge TTS.
- Run a local 5050 voice service on Windows for bot TTS calls.
- Synthesize long announcements via UTF-8 temp files.
- Diagnose TTS failures using timeout, retry, and port 5050 logs.
Best For
- Bot engineers maintaining QQBot need Chinese voice replies.
- Backend engineers need to manage Windows port 5050.
- Ops staff need to turn long notices into Chinese audio.
- Support engineers need logs for timeout and port issues.
Related Skills
A ComfyUI image-generation skill that uses a five-step dialog to collect prompts, prefill templates, confirm parameters, submit API jobs, and return results.
A design-system guidance skill for Impeccable that produces token-based rules, component states, accessibility criteria, and QA checklists.
Director-level video lapian that diagnoses material precision, then produces frame evidence, director analysis, a style bible, and a showcase video.
Plan and brief Amazon MAIN, Listing, and A+ image sets from verified product facts, then return plan and image QA status.