pst Setup
One-time (idempotent) install of the on-device TTS engine that tts relies on.
Steps
Run the setup script. It ships with the plugin and is on the Bash
PATHwhile the plugin is enabled:pst-setupReport the outcome to the user based on how it exits:
- Success — tell them TTS is ready and they can try
/pst:ttsortts "hello world". uvis not installed — the script prints install instructions (brew install uv, or the astral.sh installer). Relay those and tell them to re-run/pst:setuponceuvis available.- Any other failure — show the error output; the install can be retried
by running
pst-setupagain.
- Success — tell them TTS is ready and they can try
Notes
- Safe to re-run — it uses
uv tool install --forceand re-downloads the spaCy model, so it doubles as a repair command. - Requires
uvand macOS on Apple Silicon. - Always call
pst-setuprather than pasting the rawuv tool installcommand by hand — the script pins the exact, tested flags (git-main source, the no-phonemizerrule, the spaCy model step).