← 返回
开发者工具 中文

say

Text-to-Speech via macOS say command with Siri Natural Voices. Use for generating speech audio, TTS clips, or speaking text aloud on macOS.
通过 macOS say 命令与 Siri 自然语音实现文本转语音。用于生成语音音频、TTS 片段或在 macOS 上朗读文本。
tobihagemann
开发者工具 clawhub v1.0.2 1 版本 99817.7 Key: 无需
★ 0
Stars
📥 1,095
下载
💾 7
安装
1
版本
#latest

概述

say

Use say for on-device text-to-speech on macOS.

Siri Natural Voices (recommended)

Siri voices are the best macOS TTS voices but cannot be selected via -v. Instead, run say without -v — it uses the system default voice. Switch languages via defaults write:

# Switch to German
defaults write com.apple.speech.voice.prefs SystemTTSLanguage -string "de"
say "Hallo, wie geht's?" -o output_de.aiff

# Switch to Chinese (Mandarin)
defaults write com.apple.speech.voice.prefs SystemTTSLanguage -string "cmn"
say "你好,世界" -o output_zh.aiff

No process restart needed — the next say invocation picks up the new language immediately.

Prerequisites

Download the desired Siri voices first in System Settings > Accessibility > Spoken Content and set them as the system voice for each language.

Check which voices are currently configured:

defaults read com.apple.Accessibility SpokenContentDefaultVoiceSelectionsByLanguage

Fallback: select voice via -v

For non-Siri voices, use -v directly:

say -v 'Tingting (Enhanced)' "你好,世界"
say -v '?'  # list all installed voices (Siri voices not listed)

Output to file

say -o output.aiff "Hello world"
ffmpeg -y -i output.aiff -ar 22050 -ac 1 output.wav  # convert to WAV

Options

  • -v — Select a non-Siri voice
  • -r — Speaking rate in words per minute (e.g. -r 150)
  • -o — Save to AIFF file instead of playing aloud

Notes

  • say adds natural pauses at punctuation — no manual sentence splitting needed
  • AIFF is the native output format; convert with ffmpeg for WAV/MP3
  • For batch generation: set language once, generate all clips, then switch — minimizes defaults write calls

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 06:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 670 📥 324,286
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,293
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,260