跳到正文
TakoAPI
返回技能列表

kokoro-tts

由 edkief 提供

Speech & Transcription
4.1k下载量由 clawskills.sh 提供
1星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generate spoken audio from text using the local Kokoro TTS engine.

描述

该技能的功能

Converts text to spoken audio using a local or remote Kokoro TTS engine. Outputs an MP3 file that OpenClaw picks up and sends as an audio attachment. Voice, speed, and API endpoint are configurable.

Runs locally by default, so no cloud API key or per-request cost is needed.

何时使用

  • Sending a voice message reply in a chat
  • Reading out a summary or report aloud
  • Generating audio for a notification or alert
  • Creating a spoken version of a drafted email
  • Testing different TTS voices for a project

示例工作流

输入

User asks: "Say 'Your build is ready' in a professional voice"

智能体
  1. 1

    Identifies the af_nova voice as appropriate for a professional tone

  2. 2

    Runs tts.js with the text and af_nova voice ID

  3. 3

    Script calls the Kokoro API at KOKORO_API_URL

  4. 4

    Receives the generated MP3 and outputs the MEDIA: path

输出

MEDIA: media/tts_1706745000000.mp3 — OpenClaw sends the file as an audio attachment

前置要求

  • Kokoro TTS server running locally or remotely
  • KOKORO_API_KEY environment variable (if your Kokoro instance requires auth)

安装

clawhub install edkief/kokoro-tts

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接