SuperAPI AI Directory

audio-tts

General & other

View repository

Updated 10-15 18:46

About this skill

audio-tts

Use macOS built-in say to generate speech and convert it to m4a.

Requirements

  • macOS (built-in say)
  • afconvert(built into macOS)

Usage

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

Parameters

speak

Parameter Type Required Description
text string Yes Text to read aloud
voice string No voice name (e.g. Ting-Ting / Samantha), default empty (system default)
rate int No Speech rate WPM (the -r parameter of say)
output string No Output path (default /tmp/tts_.m4a)