Voice setup
voice_setupChecks for required text-to-speech, microphone, speech-to-text, and model dependencies, then optionally installs any missing components.
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.
bubble=true (also only after the user agrees) builds the floating call bubble on this Mac with swiftc: a small window during calls with mute and hang up.
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 |
|---|---|---|---|
| bubble | No | true: build the floating call bubble on this Mac with swiftc (about 10 s; macOS). Ask the user first. | |
| 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. |