- A local
piperbinary available inPATH(or setPIPER_BIN). - A TTS model path passed via
--voice, or theen_GBkey invoices.json.
- macOS (Homebrew):
brew install piper-tts
- Linux (prebuilt):
- Download the latest release from https://github.com/rhasspy/piper/releases
- Extract and add the
piperbinary to yourPATH
- Optional:
- Set
PIPER_BIN=/absolute/path/to/piperif the binary is not inPATH
- Set
- Pick a voice/model from the Piper releases page (look for
.onnxmodel files). - Download the
.onnxfile (and the matching.onnx.jsonmetadata if provided). - Place the model somewhere on disk (e.g.
~/models/piper/). - Pass the model path to
--voiceor map it invoices.json.
npm run generate -- --manifest ../../assets/audio-manifest.json --out ../../sd-card/audio --voice ~/models/en_GB-alba-medium.onnx --force
The script writes WAV files to the output directory for every entry in the manifest.
Pass --force to overwrite existing WAVs:
npm run generate -- --manifest ../../assets/audio-manifest.json --out ../../sd-card/audio --voice en_US --force