Local STT and TTS on macOS using native Apple capabilities. Speech-to-text via yap (Apple Speech.framework), text-to-speech via say + ffmpeg. Fully offline, no API keys required. Includes voice quality detection and smart voice selection.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install macos-local-voice或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install macos-local-voice⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/macos-local-voice/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: macos-local-voice description: "Local STT and TTS on macOS using native Apple capabilities. Speech-to-text via yap (Apple Speech.framework), text-to-speech via say + ffmpeg. Fully offline, no API keys required. Includes voice quality detection and smart voice selection." metadata: { "openclaw": { "emoji": "🎙️", "requires": { "bins": ["yap", "say", "osascript"], "os": ["darwin"] } } } ---
Fully local speech-to-text (STT) and text-to-speech (TTS) on macOS. No API keys, no network, no cloud. All processing happens on-device.
yap CLI in PATH — install via brew install finnvoor/tools/yapffmpeg in PATH (optional, needed for ogg/opus output) — brew install ffmpegsay and osascript are macOS built-inTranscribe an audio file to text using Apple's on-device speech recognition.
node {baseDir}/scripts/stt.mjs <audio_file> [locale]
audio_file: path to audio (ogg, m4a, mp3, wav, etc.)locale: optional, e.g. zh_CN, en_US, ja_JP. If omitted, uses system default.Use node {baseDir}/scripts/stt.mjs --locales to list all supported locales.
Key locales: en_US, en_GB, zh_CN, zh_TW, zh_HK, ja_JP, ko_KR, fr_FR, de_DE, es_ES, pt_BR, ru_RU, vi_VN, th_TH.
zh_CNen_USConvert text to an audio file using macOS native TTS.
node {baseDir}/scripts/tts.mjs "<text>" [voice_name] [output_path]
text: the text to speakvoice_name: optional, e.g. Yue (Premium), Tingting, Ava (Premium). If omitted, auto-selects the best available voice based on text language.output_path: optional, defaults to a timestamped file in ~/.openclaw/media/outbound/ffmpeg is available, output is ogg/opus (ideal for messaging platforms). Otherwise aiff.After generating the audio file, send it using the message tool:
message action=send media=<path_from_tts.sh> asVoice=true
List available voices, check readiness, or find the best voice for a language:
node {baseDir}/scripts/voices.mjs list [locale] # List voices, optionally filter by locale
node {baseDir}/scripts/voices.mjs check "<name>" # Check if a specific voice is downloaded and ready
node {baseDir}/scripts/voices.mjs best <locale> # Get the highest quality voice for a locale
Tell the user: "Voice X is not downloaded. Go to System Settings → Accessibility → Spoken Content → System Voice → Manage Voices to download it."
say command silently falls back to a default voice if the requested voice is not available (exit code 0, no error). Always use voices.mjs check before calling tts.mjs with a specific voice name.Yue (Premium), Ava (Premium)) sound significantly better but must be manually downloaded by the user.安装 macOS Local Voice 后,可以对 AI 说这些话来触发它
Help me get started with macOS Local Voice
Explains what macOS Local Voice does, walks through the setup, and runs a quick demo based on your current project
Use macOS Local Voice to local STT and TTS on macOS using native Apple capabilities
Invokes macOS Local Voice with the right parameters and returns the result directly in the conversation
What can I do with macOS Local Voice in my design & creative workflow?
Lists the top use cases for macOS Local Voice, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/macos-local-voice/ 目录(个人级,所有项目可用),或 .claude/skills/macos-local-voice/(项目级)。重启 AI 客户端后,用 /macos-local-voice 主动调用,或让 AI 根据上下文自动发现并使用。
macOS Local Voice 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
macOS Local Voice 可免费安装使用。请查阅仓库了解许可证信息。
Local STT and TTS on macOS using native Apple capabilities. Speech-to-text via yap (Apple Speech.framework), text-to-speech via say + ffmpeg. Fully offline, no API keys required. Includes voice quality detection and smart voice selection.
macOS Local Voice 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using macOS Local Voice
Identifies repetitive steps in your workflow and sets up macOS Local Voice to handle them automatically