Audio Tts

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

cklxx Updated 11 repo stars
elephant.ai banner

File contents

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_.m4a)

cklxx/elephant.ai commit 70b6317f61

Frequently asked questions

npx get-skill add cklxx/audio-tts