sherpa-onnx-tts

Generates speech audio from text using the offline sherpa-onnx TTS engine.

Updated Jun 19, 2026
One-click install
npx skills add https://github.com/AmirulAndalib/Vilvona-AI --skill sherpa-onnx-tts-amirulandalib
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/AmirulAndalib/Vilvona-AI/tree/main/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/AmirulAndalib/Vilvona-AI --skill sherpa-onnx-tts-amirulandalib

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It converts text into spoken audio entirely on your local machine, removing the need for cloud TTS APIs, network access, or per-request fees. ## Core Features & Use Cases - Offline Text-to-Speech: Synthesizes WAV audio from text using the sherpa-onnx CLI with VITS/Piper voice models. - Cross-Platform Runtime: Supports macOS, Linux, and Windows with downloadable prebuilt runtimes and voice models. - Configurable Voices: Swap voice models, override model files, tokens files, or data directories via environment variables or CLI flags. - Use Case: Add spoken notifications to a local assistant by running the wrapper to produce a WAV file from any response text. ## Quick Start Ask the assistant to synthesize the phrase "Hello from local TTS" into a WAV file using the sherpa-onnx-tts wrapper after downloading the runtime and a voice model.

Frequently Asked Questions about sherpa-onnx-tts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert text to speech offline without a cloud API?

Use the sherpa-onnx CLI wrapper to synthesize speech locally. After downloading the runtime and a voice model, run the wrapper with an output path and your text, for example producing tts.wav from a sentence, with no network calls involved.

How do I install sherpa-onnx TTS on macOS, Linux, or Windows?

Download the platform-specific sherpa-onnx runtime archive and extract it into a runtime directory, then download a voice model such as vits-piper-en_US-lessac-high into a models directory. Set SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR to those paths.

Can I use a different voice model with sherpa-onnx TTS?

Yes, you can pick any compatible model from the sherpa-onnx tts-models release instead of the default Piper en_US lessac voice. Point SHERPA_ONNX_MODEL_DIR at the new model directory to switch voices.

What if the model directory contains multiple .onnx files?

Set the SHERPA_ONNX_MODEL_FILE environment variable or pass the --model-file flag to select a specific model. You can also pass --tokens-file or --data-dir to override the default token and data paths.

Does sherpa-onnx TTS work on Windows?

Yes, a Windows x64 runtime build is available for download. On Windows, invoke the wrapper through node, for example node bin\sherpa-onnx-tts -o tts.wav followed by your text.