Tts

Text-to-speech on macOS -- make the device speak text aloud. Use for voice announcements, reading content aloud, or accessibility.

mikeyobrien 858b43d 708 B Updated

File contents

Text-to-Speech

Speak text

say "Hello, this is a test"

Pipe text

echo "Hello world" | say

Choose a voice

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

List available voices

say -v '?'

Adjust rate (words per minute)

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

Save to audio file

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

Command blocks until speech completes.

mikeyobrien/rho/tree/main/platforms/macos/skills/tts commit 858b43d5c5

Frequently asked questions

npx skillmds@latest add mikeyobrien/tts-2