← 返回 Skills 市场
547895019

Windows TTS (WSL2)

作者 547895019 · GitHub ↗ · v1.1.1
cross-platform ⚠ suspicious
840
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install windows-tts-wsl2
功能描述
在 Windows 11 上"直接发声"的 TTS(从 WSL2/TUI 调用 powershell.exe + System.Speech)。适用于用户说"说出来/读出来/语音播报/用TTS",或反馈"没声音/tts 生成的 mp3 是空的/播不出来",以及需要中文语音但 OpenClaw 内置 tts 不可用时。
安全使用建议
This skill is coherent and will play speech through Windows as advertised, but it currently treats the text you ask it to speak as a PowerShell double‑quoted string and does not neutralize PowerShell variable or subexpression syntax. That means a crafted message (e.g., containing $env:..., $(...), etc.) could cause PowerShell to evaluate code on your Windows host. Before installing/use: (1) Only run this skill in trusted environments and avoid feeding untrusted text to it. (2) Prefer a patched version of say.sh that safely passes the text to PowerShell (for example: use single-quoted here-strings or -EncodedCommand, or otherwise escape/encode $ and $( ) so no interpolation happens). (3) If you want to proceed comfortably, ask the maintainer to fix the script to treat text as a literal string (e.g., use $s.Speak(@'... '@) or use powershell -EncodedCommand with base64), and add an explicit OS requirement for WSL/Windows in the metadata.
功能分析
Type: OpenClaw Skill Name: windows-tts-wsl2 Version: 1.1.1 The skill bundle is classified as suspicious due to a critical shell injection vulnerability in `scripts/say.sh`. The script constructs a PowerShell command using user-provided input for `--voice`, `--rate`, `--volume`, and the main text, but the input sanitization (using `sed 's/"/`"/g'`) is insufficient. This allows an attacker to inject arbitrary PowerShell commands by including characters like semicolons (`;`) in the input, potentially leading to remote code execution on the Windows host via WSL2.
能力评估
Purpose & Capability
Name, description, SKILL.md and the two scripts all consistently implement 'call Windows System.Speech from WSL' to play audio on the Windows default device. The functionality and required actions are proportional to the stated purpose.
Instruction Scope
The runtime instructions and scripts execute powershell.exe on the Windows host (expected for this skill). However, user-provided TEXT is embedded into a PowerShell double‑quoted string (\$s.Speak("$TEXT_ESC");) without escaping PowerShell variable/subexpression syntax ($, $(), ${}, etc.). That allows an input containing $var or $(...) to be interpreted by PowerShell and run arbitrary code on Windows. The SKILL.md mentions escaping $ to avoid bash expansion (a different issue) but does not warn about or mitigate PowerShell interpolation risk.
Install Mechanism
No install spec or external downloads; the skill is instruction + small scripts only. That is low-risk from install/source code perspective.
Credentials
The skill declares no env/credentials (correct). It implicitly requires a WSL environment with access to powershell.exe (i.e., Windows host), which the SKILL.md documents, but the registry metadata does not list an OS restriction—minor mismatch to be aware of.
Persistence & Privilege
always:false and no persistent installation or cross-skill config changes. The skill runs commands at invocation only; autonomous invocation remains platform default and is not by itself a new risk here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install windows-tts-wsl2
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /windows-tts-wsl2 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
Fix say.sh to be standalone (remove dependency on deleted saycn.sh); keep voice/rate/volume support
v1.1.0
Remove saycn.sh, unify to say.sh only
v1.0.0
Initial release: speak Chinese via Windows System.Speech from WSL2
元数据
Slug windows-tts-wsl2
版本 1.1.1
许可证
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Windows TTS (WSL2) 是什么?

在 Windows 11 上"直接发声"的 TTS(从 WSL2/TUI 调用 powershell.exe + System.Speech)。适用于用户说"说出来/读出来/语音播报/用TTS",或反馈"没声音/tts 生成的 mp3 是空的/播不出来",以及需要中文语音但 OpenClaw 内置 tts 不可用时。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 840 次。

如何安装 Windows TTS (WSL2)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install windows-tts-wsl2」即可一键安装,无需额外配置。

Windows TTS (WSL2) 是免费的吗?

是的,Windows TTS (WSL2) 完全免费(开源免费),可自由下载、安装和使用。

Windows TTS (WSL2) 支持哪些平台?

Windows TTS (WSL2) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Windows TTS (WSL2)?

由 547895019(@547895019)开发并维护,当前版本 v1.1.1。

💬 留言讨论