# Audio Tts

> When the user wants text-to-speech audio → generate voice files locally (macOS say + afconvert, outputs m4a).

- Skill: `cklxx/audio-tts` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx get-skill add cklxx/audio-tts`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cklxx/audio-tts/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cklxx (https://skillmd.com/u/cklxx)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/cklxx/audio-tts

---


# audio-tts

使用 macOS 自带 `say` 生成语音，并转成 m4a。

## Requirements
- macOS（内置 `say`）
- `afconvert`（macOS 自带）

## Usage

```bash
python3 skills/audio-tts/run.py speak --text '你好，这是语音测试'
```

## Parameters

### speak
| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| text | string | 是 | 朗读文本 |
| voice | string | 否 | voice 名称（如 Ting-Ting / Samantha），默认空（系统默认） |
| rate | int | 否 | 语速 WPM（say 的 -r 参数） |
| output | string | 否 | 输出路径（默认 /tmp/tts_<ts>.m4a） |
```

