cklxx

audio-tts

本地 TTS 语音生成(macOS say + afconvert),输出 m4a 文件。

cklxx 11 1 Updated 3mo ago

Resources

2
GitHub

Install

npx skillscat add cklxx/elephant-ai/audio-tts

Install via the SkillsCat registry.

SKILL.md

audio-tts

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

Requirements

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

Usage

python3 skills/audio-tts/run.py '{"action":"speak","text":"你好,这是语音测试"}'

Parameters

speak

参数 类型 必填 说明
text string 朗读文本
voice string voice 名称(如 Ting-Ting / Samantha),默认空(系统默认)
rate int 语速 WPM(say 的 -r 参数)
output string 输出路径(默认 /tmp/tts_.m4a)