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.
npx skills add renky1025/agent-skills --skill mlx-ttsgit clone --depth 1 https://github.com/renky1025/agent-skillsWrote 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.
[](https://agentmods.dev/skills/renky1025/agent-skills/mlx-tts)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- 安装(一次性):
brew install ffmpeg uv && uv tool install --force "mlx-audio" --prerelease=allow - 验证安装:
uv tool list | grep mlx应显示mlx-audio v0.4.2。若命令找不到, 重启终端或uv tool update-shell。首次生成会自动下载模型(约 2GB)。 - 生成 TTS:
mlx_audio.tts.generate --text "你好,这是本地 TTS 测试" --output-path ./output.wav需要设计音色时追加--instruct "a warm, gentle female voice"。音色示例见references/voice-design.md。 - 长文本分块:文本超过约 500 字时按句子边界切分(每块 <= 300 字),逐块生成后用 ffmpeg
拼接,避免内存问题与音频截断。做法见
references/batch-and-long-text.md。 - 可选 ASR:
mlx_audio.stt.generate --audio ./input.wav --output-path ./transcript.txt --language zh长音频追加--chunk-duration 30。 - 可选后处理/转换:用 ffmpeg 做变调、混响、变速、响度标准化或转 mp3/aac/flac,
命令集见
references/audio-post-processing.md。 - 验证产物:确认输出 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。
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.
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.
- 2mo ago Changed · -426 lines · +186 tokens per session scan C → A db98b2ae851e
- 3mo ago First seen · 539 lines · 36 tokens per session scan C 42bef96253f9
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.
mlx-tts compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mlx-ttsrenky1025/agent-skills | Skill | 14 | 1mo ago | MIT | A | 222 | Claude Code, Codex |
| edgeone skill scannerTencent/AI-Infra-Guard | Skill | 7.8k | yesterday | Apache-2.0 | A | 148 | Claude Code, Codex |
| babysitkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 45 | Claude Code |
| rubber-duckkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 161 | Claude Code, Codex |
| project-wikiGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 63 | Claude Code, Codex |
| mindos-zhGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 490 | Claude Code |
| mindosGeminiLight/MindOS | Skill | 707 | 23d ago | MIT | A | 136 | Claude Code |