Voice setup
voice_setupVerifies your Mac has the speech components (TTS, microphone recorder, speech-to-text, model) needed for voice conversations, and installs missing ones on request.
Instructions
Check whether this computer has everything speak_and_listen needs — text-to-speech, a microphone recorder (SoX),
whisper.cpp speech-to-text and the speech model — and optionally install what's missing.
Anything already installed is reused (an existing model elsewhere on disk is symlinked, not re-downloaded).
Call it with install=false (the default) first and tell the user what is missing.
Only call it with install=true after the user agrees: it runs brew install for the missing packages
and downloads the speech model once. It never uninstalls or changes anything else.
kokoro=true (also only after the user agrees) installs the optional Kokoro voice: more natural than the built-in one,
runs on this Mac, about 1 GB on disk. Once installed it's used automatically; the built-in voice stays as the fallback.
If it reports INSTALLING, the install continues in the background — wait a minute and call it again to check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kokoro | No | true: install the optional Kokoro voice — a natural-sounding neural voice that runs on this Mac (kokoro-js via npm and a one-time model download, about 1 GB on disk). Ask the user first. | |
| install | No | false (default): only check. true: brew install missing packages and download the model. Ask the user first. |