Run fully offline text-to-speech locally via sherpa-onnx — no cloud, no API keys, no internet required.
npx clawhub@latest install sherpa-onnx-ttsRequirements
sherpa-onnx-tts brings fully offline, on-device text-to-speech to your AI agent using the sherpa-onnx runtime. It bundles a CLI wrapper around the sherpa-onnx engine and ships with a high-quality Piper voice model (vits-piper-en_US-lessac-high) out of the box. Because everything runs locally, your text never leaves your machine — making it suitable for privacy-sensitive workflows and air-gapped environments.
npx clawhub@latest install sherpa-onnx-ttsClick the Install button at the top of this page for one-click setup
.wav files programmatically from a CLI command or agent tool.The entire TTS pipeline runs on your local machine using the sherpa-onnx native runtime. No internet connection, no API keys, and no usage fees are required after the initial model download.
Pre-built sherpa-onnx runtimes are automatically downloaded for macOS (Universal 2), Linux x64, and Windows x64, so you get the correct native binary for your OS without manual compilation.
Ships with the high-quality vits-piper-en_US-lessac-high model by default. You can drop in any other voice model from the sherpa-onnx tts-models release and point SHERPA_ONNX_MODEL_DIR at it.
Synthesize speech to a .wav file with a single command: sherpa-onnx-tts -o output.wav "Your text here". Supports overrides for model file, tokens file, and data directory via flags or environment variables.
When a model directory contains multiple .onnx files, set SHERPA_ONNX_MODEL_FILE or pass --model-file to specify which model to use, enabling multi-model setups without reconfiguring the base directory.
An AI agent summarizes a document and calls this skill to produce a spoken .wav file narration — entirely offline, with no cloud dependency in the pipeline.
A legal or medical assistant agent needs to read back sensitive content aloud. Using sherpa-onnx-tts ensures that confidential text is never transmitted to a third-party TTS API.
A developer scripts the CLI in a loop to convert dozens of text snippets into .wav files for a local application, with no per-call cost and no rate limits.
In environments where outbound internet access is blocked or restricted, this skill provides a self-contained TTS solution once the runtime and models are downloaded during setup.
SHERPA_ONNX_RUNTIME_DIR) — path to the extracted sherpa-onnx native runtime for your OS. Downloaded automatically during install.SHERPA_ONNX_MODEL_DIR) — path to the extracted voice model folder (e.g. vits-piper-en_US-lessac-high). Downloaded automatically during install.SHERPA_ONNX_MODEL_FILE) (optional) — specify a particular .onnx file when multiple models exist in the model directory.npx clawhub@latest install sherpa-onnx-ttsRequirements
Log in to write a review
No reviews yet. Be the first to share your experience!