agentleFS
LocalKinAILocalKinAI/kinclaw/skills/tts/SKILL.md

tts

Skill9 starsChanged 6 months agoApache-2.0View on GitHub

Synthesize speech from text and play it through the macOS speakers. Talks to a local LocalKin Service Audio Server (default :8001 / Kokoro). When `record` is running with audio=true, the spoken audio is captured into the recording — use this in place of `shell say` for high-quality multilingual narration in demo videos. Set the TTS_ENDPOINT env var to point at a different server.

  • Sends data out

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use Video Generation, VLM and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • huang-x-hSkill

    Video Generation

    Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to generate videos from text prompts or images, create video content programmatically, or build applications that produce video outputs. Supports asynchronous task management with status polling and result retrieval.

    Also in 6 projects that use this

  • huang-x-hSkill

    VLM

    Implement vision-based AI chat capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze images, describe visual content, or create applications that combine image understanding with conversational AI. Supports image URLs and base64 encoded images for multimodal interactions.

    Also in 6 projects that use this

  • dav-niu474Skill

    gift-evaluator

    The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.

    Also in 5 projects that use this

  • dav-niu474Skill

    Podcast Generate

    Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).

    Also in 5 projects that use this

  • +2 more from huang-x-h
  • +6 more from dav-niu474

The file

Files
SKILL.md

tts — speech synthesis via LocalKin Service Audio (Kokoro)

Wraps the LocalKin Service Audio API at :8001/synthesize and plays the returned WAV through the macOS default output (afplay).

Why this is a SKILL.md and not a native skill

It's three lines of curl + afplay. Pushing it into pkg/skill/ would violate the "thin kernel + fat skill" thesis and make it harder for users to fork. As an external SKILL.md it's also a forge template: the next HTTP service that needs wrapping can be modeled on this file.

How record captures the narration

record action=start audio=true enables ScreenCaptureKit's system-audio tap. afplay writes to the default output device, which the tap captures. End result: the spoken text shows up on the video's audio track without any extra plumbing.

Examples

tts text="接下来我会打开计算器" voice="zf_xiaoxiao"
tts text="Now I'll open Safari and search for KinClaw"

Override the endpoint

TTS_ENDPOINT=http://otherbox:8001 kinclaw -soul souls/pilot.soul.md

Failure modes

  • tts: server returned HTTP 000 — server isn't running on the configured port.
  • tts: server returned HTTP 4xx/5xx — server is up but rejected the request; the body is echoed to stderr.
  • afplay: ... — playback failed (no audio device, sandboxed environment).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.