← Back to Skills Marketplace
wray151

Kokoro Tts Amx

by Wray151 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
41
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install kokoro-tts-amx
Description
Local Kokoro-82M text-to-speech on Intel CPU with bf16 autocast and oneDNN AMX-BF16 acceleration. Synthesizes Chinese/English/Japanese/French/Spanish/Hindi/I...
README (SKILL.md)

kokoro-tts-amx

Local CPU TTS via Kokoro-82M, default bf16 autocast → oneDNN AMX-BF16 (Sapphire / Emerald / Granite Rapids). Multilingual (zh/en/ja/fr/es/hi/it/pt).

Skill 目录就是本仓库根; 完整说明见同目录 README.md.

TL;DR

cd \x3Cskill-dir>  # 即本仓库根
source .venv/bin/activate
python tts.py "春天的早晨阳光明媚。"                    # → output.wav (zh, bf16/AMX)
python tts.py "Hello world." -v af_heart -o en.wav     # 英文
python tts.py "你好" --fp32 -o hi_fp32.wav             # 显式 fp32 对照

Voice 前缀: zf_/zm_=zh, af_/am_=en-US, bf_/bm_=en-GB, jf_/jm_=ja, ff_=fr, ef_=es, hf_=hi, if_=it, pf_=pt-BR. README.md: \x3Chttps://huggingface.co/hexgrad/Kokoro-82M/tree/main/voices>.

首次安装 (新机器)

sudo apt-get install -y espeak-ng
python3 -m venv .venv && source .venv/bin/activate
pip install torch kokoro 'misaki[zh]' numpy
python -c "from kokoro import KPipeline; KPipeline(lang_code='z', repo_id='hexgrad/Kokoro-82M')"  # 预下载 ~350MB

注意

  • AMX-BF16 仅 Intel SPR/EMR/GNR 有;老 CPU 自动 fallback 到 AVX-512 BF16/FP32。
  • 默认走 bf16/AMX;如需 fp32 加 --fp32
  • 线程不显式设,由 PyTorch/oneDNN 按可见 CPU 自动分配,配 taskset 限核也 OK。
Usage Guidance
This skill looks reasonable for local TTS. Before installing, review the setup commands, be comfortable with system/Python package installation and the Hugging Face model download, and prefer a reviewed or pinned install path over the optional curl-to-bash command.
Capability Analysis
Type: OpenClaw Skill Name: kokoro-tts-amx Version: 0.1.0 The skill provides legitimate local text-to-speech functionality using Kokoro-82M, but it employs high-risk installation and execution patterns. The 'install.sh' script and 'README.md' promote the use of 'curl | bash' for installation and require 'sudo apt-get' permissions for system dependencies (espeak-ng). Furthermore, 'install.sh' dynamically clones repositories based on an environment variable (REPO_URL), which is a risky pattern that could be exploited to execute arbitrary code if the agent's environment is manipulated.
Capability Assessment
Purpose & Capability
The runtime code takes user-provided text, loads Kokoro locally, and writes a WAV file, matching the stated local TTS purpose.
Instruction Scope
The skill grants Bash access for python, pip, apt-get, source, and cd; this fits setup/runtime needs but includes package-management authority.
Install Mechanism
There is no formal install spec, but README/install.sh provide manual setup including apt/brew, pip, Hugging Face model predownload, and an optional curl-to-bash GitHub installer.
Credentials
Setup creates a local virtual environment, installs Python/system dependencies, and downloads a model cache; this is proportionate for offline TTS but changes the local environment.
Persistence & Privilege
The installer only registers a scoped symlink for this skill and does not show background processes, credential use, or self-propagation.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install kokoro-tts-amx
  3. After installation, invoke the skill by name or use /kokoro-tts-amx
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
initial
Metadata
Slug kokoro-tts-amx
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Kokoro Tts Amx?

Local Kokoro-82M text-to-speech on Intel CPU with bf16 autocast and oneDNN AMX-BF16 acceleration. Synthesizes Chinese/English/Japanese/French/Spanish/Hindi/I... It is an AI Agent Skill for Claude Code / OpenClaw, with 41 downloads so far.

How do I install Kokoro Tts Amx?

Run "/install kokoro-tts-amx" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Kokoro Tts Amx free?

Yes, Kokoro Tts Amx is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Kokoro Tts Amx support?

Kokoro Tts Amx is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Kokoro Tts Amx?

It is built and maintained by Wray151 (@wray151); the current version is v0.1.0.

💬 Comments