首页龙虾技能列表 › Kokoro TTS — 语音合成

Kokoro TTS — 语音合成

v0.1.0

使用本地Kokoro TTS引擎从文本生成语音音频。当用户要求"说"某事、请求语音消息或希望文本转语音时使用。

1· 5,694·33 当前·33 累计
by @edkief·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/27
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
该技能是一个直接的本地TTS包装器,但它引用未声明的环境变量,并将用户文本POST到设置的任何KOKORO_API_URL——安装前审查配置的端点和来源。
评估建议
此技能似乎仅通过Kokoro API进行文本→语音转换,但安装前有两件事需要检查:来源——技能的源/主页未知;端点配置——默认发布到localhost,但如果KOKORO_API_URL设置为远程URL,该服务器将收到您发送的原始文本。...
详细分析 ▾
用途与能力
The skill's name, description, and included script all align with a TTS purpose. However, SKILL.md and the script rely on a KOKORO_API_URL environment variable but the registry metadata lists no required env vars — an inconsistency in declared requirements.
指令范围
Runtime instructions are narrowly scoped to generating speech: set KOKORO_API_URL, run the provided Node.js script, and the script writes an MP3 into ./media and prints a MEDIA: path. The instructions do not request unrelated system files or credentials.
安装机制
No install spec; this is an instruction-only skill with a small included Node.js script. No remote downloads or archive extraction are performed by the skill itself.
凭证需求
Although no required env vars are declared in the metadata, the script and SKILL.md use KOKORO_API_URL (defaults to http://localhost:8880/v1/audio/speech). Because the endpoint is configurable, user text will be POSTed to whatever URL is set — if that URL points to an untrusted remote server, sensitive content could be exfiltrated. The metadata should explicitly declare KOKORO_API_URL.
持久化与权限
The skill does not request always:true and will not modify other skills or system-wide configs. It writes media files into the current working directory (media/), which is expected behavior for a TTS tool.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv0.1.02026/2/1

kokoro-tts 0.1.0 - Initial release of the Kokoro TTS skill for generating speech audio from text. - Supports configuration via the KOKORO_API_URL environment variable. - Includes a Node.js script for generating audio files with customizable voice and speed. - Outputs MP3 file paths in a format compatible with OpenClaw for automatic audio attachment. - Provides several built-in voice options and instructions for listing all available voices.

● 无害

安装命令 点击复制

官方npx clawhub@latest install kokoro-tts
镜像加速npx clawhub@latest install kokoro-tts --registry https://cn.clawhub-mirror.com

技能文档

This skill allows you to generate high-quality AI speech using a local or remote Kokoro-TTS instance.

Configuration

The skill uses the KOKORO_API_URL environment variable to locate the API.

  • Default: http://localhost:8880/v1/audio/speech
  • To Configure: Add KOKORO_API_URL=http://your-server:port/v1/audio/speech to your .env file or environment.

Usage

To generate speech, run the included Node.js script.

Command

node skills/kokoro-tts/scripts/tts.js "" [voice] [speed]
  • text: The text to speak. Wrap in quotes.
  • voice: (Optional) The voice ID. Defaults to af_heart.
  • speed: (Optional) Speech speed (0.25 to 4.0). Defaults to 1.0.

Example

node skills/kokoro-tts/scripts/tts.js "Hello Ed, this is Theosaurus speaking." af_nova

Output

The script will output a single line starting with MEDIA: followed by the path to the generated MP3 file. OpenClaw will automatically pick this up and send it as an audio attachment.

Example Output: MEDIA: media/tts_1706745000000.mp3

Available Voices

Common choices:

  • af_heart (Default, Female, Warm)
  • af_nova (Female, Professional)
  • am_adam (Male, Deep)
  • bf_alice (British Female)

For a full list, see references/voices.md or query the API.

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务