kokoro-tts
Generate spoken audio from text using the local Kokoro TTS engine. Use when the user asks to "say" something, requests a voice message, or wants text converted to speech.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- kokoro-tts
- description
- Generate spoken audio from text using the local Kokoro TTS engine. Use when the user asks to "say" something, requests a voice message, or wants text converted to speech.
02 资源文件 3
- 参考文档_meta.json272 B
- 参考文档references/voices.md488 B
- 脚本scripts/tts.js1.6 KB
03 SKILL.md 正文
Kokoro TTS
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/speechto your.envfile or environment.
Usage
To generate speech, run the included Node.js script.
Command
node skills/kokoro-tts/scripts/tts.js "<text>" [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.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.