中文导读
mac-tts 是一套面向一人公司的通用 playbook,帮助你用更少的人力完成更稳的增长、交付与决策。
概览
Use macOS built-in say command for text-to-speech output through system speakers. Basic Usage say "Hello, this is a test" With Voice Selection say -v "Meijia" "你好,這是測試" # 台灣中文 (推薦) say -v "Tingting" "你好,这是测试" # 簡體中文 say -v "Samantha" "Hello world" # 英文 Common Chinese Voices (zh_TW) VoiceDescriptionMeijia美佳 - 自然女聲 (推薦)Flo年輕女聲Eddy男聲Reed男聲Sandy女聲Shelley女聲 List All Available Voices say -v "?" # 全部語音 say -v "?" | grep zh_TW # 只列台灣中文 Volume Control Check/adjust system volume before speaking:
Check current volume (0-100) and mute status
osascript -e "output volume of (get volume settings)" osascript -e "output muted of (get volume settings)"
Unmute
osascript -e "set volume without output muted"
Set volume (0-100)
osascript -e "set volume output volume 70"
使用场景
通知: say -v "Meijia" "外送到了" 提醒: say -v "Meijia" "會議即將開始" 警告: say -v "Meijia" "注意,有新的緊急訊息" Notes Runs synchronously (blocks until speech completes) Add & for async: say "message" & Works only on macOS
SKILL.md 原文件
预览原始 SKILL.md. 下面可以直接查看完整原文。可滚动阅读、检查结构,再下载精确的 SKILL.md 原文件。
# mac-tts
mac-tts
Use macOS built-in say command for text-to-speech output through system speakers.
Basic Usage
say "Hello, this is a test"
With Voice Selection
say -v "Meijia" "你好,這是測試" # 台灣中文 (推薦)
say -v "Tingting" "你好,这是测试" # 簡體中文
say -v "Samantha" "Hello world" # 英文
Common Chinese Voices (zh_TW)
VoiceDescriptionMeijia美佳 - 自然女聲 (推薦)Flo年輕女聲Eddy男聲Reed男聲Sandy女聲Shelley女聲
List All Available Voices
say -v "?" # 全部語音
say -v "?" | grep zh_TW # 只列台灣中文
Volume Control
Check/adjust system volume before speaking:
# Check current volume (0-100) and mute status
osascript -e "output volume of (get volume settings)"
osascript -e "output muted of (get volume settings)"
# Unmute
osascript -e "set volume without output muted"
# Set volume (0-100)
osascript -e "set volume output volume 70"
Use Cases
通知: say -v "Meijia" "外送到了"
提醒: say -v "Meijia" "會議即將開始"
警告: say -v "Meijia" "注意,有新的緊急訊息"
Notes
Runs synchronously (blocks until speech completes)
Add & for async: say "message" &
Works only on macOS
预览原始 SKILL.md. 下面可以直接查看完整原文。可滚动阅读、检查结构,再下载精确的 SKILL.md 原文件。
# mac-tts
mac-tts
Use macOS built-in say command for text-to-speech output through system speakers.
Basic Usage
say "Hello, this is a test"
With Voice Selection
say -v "Meijia" "你好,這是測試" # 台灣中文 (推薦)
say -v "Tingting" "你好,这是测试" # 簡體中文
say -v "Samantha" "Hello world" # 英文
Common Chinese Voices (zh_TW)
VoiceDescriptionMeijia美佳 - 自然女聲 (推薦)Flo年輕女聲Eddy男聲Reed男聲Sandy女聲Shelley女聲
List All Available Voices
say -v "?" # 全部語音
say -v "?" | grep zh_TW # 只列台灣中文
Volume Control
Check/adjust system volume before speaking:
# Check current volume (0-100) and mute status
osascript -e "output volume of (get volume settings)"
osascript -e "output muted of (get volume settings)"
# Unmute
osascript -e "set volume without output muted"
# Set volume (0-100)
osascript -e "set volume output volume 70"
Use Cases
通知: say -v "Meijia" "外送到了"
提醒: say -v "Meijia" "會議即將開始"
警告: say -v "Meijia" "注意,有新的緊急訊息"
Notes
Runs synchronously (blocks until speech completes)
Add & for async: say "message" &
Works only on macOS
评论与讨论
添加评论