技能圖譜SKILLSGROVE
技能圖譜/影片製作/cklxx/elephant.ai/audio-tts

audio-tts

安裝

$npx skills add https://github.com/cklxx/elephant.ai --skill audio-tts
$git clone --depth 1 https://github.com/cklxx/elephant.ai.git /tmp/elephant.ai && mkdir -p ~/.claude/skills && cp -r /tmp/elephant.ai/skills/audio-tts ~/.claude/skills/audio-tts
請幫我安裝這個 Agent Skill:https://github.com/cklxx/elephant.ai/tree/bc94628f41b7daba20825b86069ae8e0fa83dc5e/skills/audio-tts ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITWhen the user wants text-to-speech audio → generate voice files locally (macOS say + afconvert, outputs m4a).
以下 SKILL.md 內容轉載自 cklxx/elephant.ai(提交 bc94628),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2025 cklxx 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

audio-tts

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

Requirements

  • macOS(内置 say)
  • afconvert(macOS 自带)

Usage

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)

檢視許可證全文(MIT)
MIT License

Copyright (c) 2025 cklxx

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.