mlx-tts

mlx-tts is a skill for Claude Code, Codex from renky1025/agent-skills. It costs 222 tokens per session (2,038 once invoked), scanned A, original, MIT.

A local text-to-speech tool for Apple Silicon Macs using Qwen3-TTS through the MLX framework. Text-to-speech means turning written text into spoken audio.

In plain words
What is it for?
Use it to generate spoken audio from text, design a voice from a written description, and perform speech-to-text transcription locally.
Why use it?
It lets you create speech on the Mac without sending text to a cloud service or using an API key. It is intended for Apple Silicon systems rather than Intel Macs or other operating systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate spoken audio from text, design a voice from a written description, and perform speech-to-text transcription locally.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/renky1025/agent-skills/mlx-tts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add renky1025/agent-skills --skill mlx-tts
Clone the repo
git clone --depth 1 https://github.com/renky1025/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mlx-tts

README.md
[![agentmods](https://agentmods.dev/badge/skills/renky1025/agent-skills/mlx-tts/github.svg)](https://agentmods.dev/skills/renky1025/agent-skills/mlx-tts)
Your own site
<a href="https://agentmods.dev/skills/renky1025/agent-skills/mlx-tts"><img src="https://agentmods.dev/badge/skills/renky1025/agent-skills/mlx-tts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mlx-tts

Your own site · 80×15
<a href="https://agentmods.dev/skills/renky1025/agent-skills/mlx-tts"><img src="https://agentmods.dev/badge/skills/renky1025/agent-skills/mlx-tts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 222 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,038 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00222 $0.02038
Opus 5.5 $0.00089 $0.00815
Sonnet 5.5 $0.00044 $0.00408
Haiku 4.5 $0.00022 $0.00204

Measured 2mo ago against content hash db98b2ae851e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mlx-tts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mlx-tts/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mlx-tts: Apple Silicon 本地语音合成

Purpose

用 MLX 框架在本机跑 Qwen3-TTS,把文本合成为高质量语音,并可用文字提示词设计音色; 附带 Qwen3-ASR 做语音转文字。全程离线、无 API key。本技能是一套操作协议:装好环境、 跑对命令、验证产物——不做云端调用,也不做提示词音色的临场猜测(那部分查参考文件)。

When to Use

  • 在 Apple Silicon Mac(M1/M2/M3/M4)上需要高质量本地 TTS。
  • 想用文字提示词设计音色,例如 "a warm female voice, slightly soft"。
  • 需要本机 ASR(语音转文字)。
  • 希望利用 Apple Neural Engine 获得快速推理,且数据不出本机。
  • 触发词:文字转语音、TTS、语音合成、生成配音、旁白、有声书、语音转文字、ASR、 text to speech、speech synthesis、local TTS、voice design。

When NOT to Use

  • 非 Apple Silicon(Intel Mac / Windows / Linux)-> 改用其他 TTS 方案。
  • 需要从参考音频做真人音色克隆 -> 本模型只支持提示词式音色设计。
  • 内存低于 16GB -> 也许能跑,但更慢。
  • 需要把配音逐段对齐到视频时间轴、烧录字幕 -> 交给 video-dubbing。
  • 需要把整段视频转成结构化纪要 -> 交给 video-minutes。

Workflow

  1. 安装(一次性): brew install ffmpeg uv && uv tool install --force "mlx-audio" --prerelease=allow
  2. 验证安装:uv tool list | grep mlx 应显示 mlx-audio v0.4.2。若命令找不到, 重启终端或 uv tool update-shell。首次生成会自动下载模型(约 2GB)。
  3. 生成 TTS: mlx_audio.tts.generate --text "你好,这是本地 TTS 测试" --output-path ./output.wav 需要设计音色时追加 --instruct "a warm, gentle female voice"。音色示例见 references/voice-design.md。
  4. 长文本分块:文本超过约 500 字时按句子边界切分(每块 <= 300 字),逐块生成后用 ffmpeg 拼接,避免内存问题与音频截断。做法见 references/batch-and-long-text.md。
  5. 可选 ASR: mlx_audio.stt.generate --audio ./input.wav --output-path ./transcript.txt --language zh 长音频追加 --chunk-duration 30。
  6. 可选后处理/转换:用 ffmpeg 做变调、混响、变速、响度标准化或转 mp3/aac/flac, 命令集见 references/audio-post-processing.md。
  7. 验证产物:确认输出 WAV 存在、时长非零、可播放;音色或语气不符合预期时调整 --instruct 重跑,而不是叠加更多效果器。

Decision Rules

  • 短文本 -> 直接一次生成;超过约 500 字 -> 必须分块(references/batch-and-long-text.md)。
  • 要设计/改变音色 -> 用 --instruct 描述;要保持多段音色一致 -> 用首段作 --ref_audio 参考 (--ref_audio + --ref_text,见 references/voice-design.md)。
  • 要 mp3 / aac / flac / ogg -> 先生成 WAV,再用 ffmpeg 转换(references/audio-post-processing.md)。
  • 要做语音转文字 -> mlx_audio.stt.generate;需要字幕 -> --format srt,需要时间戳 -> --format json。
  • 模型下载慢/失败 -> 设 HF_ENDPOINT=https://hf-mirror.com 或改用 ModelScope (references/install-apple-silicon.md)。
  • 音色不理想 -> 先简化 --instruct;仍不满意再换提示词,不要堆叠复杂指令。
  • 需要 GUI、可视化时间线或真人克隆 -> 改用 Voicebox,对比见 references/voicebox-comparison.md。

Read the full file on GitHub · 113 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -426 lines · +186 tokens per session scan C → A db98b2ae851e
  2. 3mo ago First seen · 539 lines · 36 tokens per session scan C 42bef96253f9

Subscribe to this mod's changes

mlx-tts is a skill published in the GitHub repository renky1025/agent-skills (14 stars, last pushed 1mo ago), licensed MIT. It adds 222 tokens to every session and 2,038 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mlx-tts compared with skills from other repositories

mlx-tts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mlx-ttsrenky1025/agent-skillsSkill141mo agoMITA222Claude Code, Codex
edgeone skill scannerTencent/AI-Infra-GuardSkill7.8kyesterdayApache-2.0A148Claude Code, Codex
babysitkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A45Claude Code
rubber-duckkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A161Claude Code, Codex
project-wikiGeminiLight/MindOSSkill70723d agoMITA63Claude Code, Codex
mindos-zhGeminiLight/MindOSSkill70723d agoMITA490Claude Code
mindosGeminiLight/MindOSSkill70723d agoMITA136Claude Code