Loading...
Loading...
本地 TTS 语音生成(macOS say + afconvert),输出 m4a 文件。
npx skill4agent add cklxx/elephant.ai audio-ttssaysayafconvertpython3 skills/audio-tts/run.py '{"action":"speak","text":"你好,这是语音测试"}'| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| text | string | 是 | 朗读文本 |
| voice | string | 否 | voice 名称(如 Ting-Ting / Samantha),默认空(系统默认) |
| rate | int | 否 | 语速 WPM(say 的 -r 参数) |
| output | string | 否 | 输出路径(默认 /tmp/tts_<ts>.m4a) |
undefined