AgentSkillsCN

tts

在macOS系统中,启用文本转语音功能——让设备自动朗读文本内容。适用于语音播报、内容朗读,或提升无障碍体验。

SKILL.md
--- frontmatter
name: tts
description: Text-to-speech on macOS -- make the device speak text aloud. Use for voice announcements, reading content aloud, or accessibility.

Text-to-Speech

Speak text

bash
say "Hello, this is a test"

Pipe text

bash
echo "Hello world" | say

Choose a voice

bash
say -v Alex "Hello"
say -v Samantha "Hello"
say -v Daniel "Hello"

List available voices

bash
say -v '?'

Adjust rate (words per minute)

bash
say -r 200 "Speaking faster"
say -r 100 "Speaking slower"

Save to audio file

bash
say -o output.aiff "Text to save"
say -o output.aiff --data-format=LEF32@22050 "Text to save"

Command blocks until speech completes.