sherpa-onnx-tts

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

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/travis-burmaster/agentbox --skill sherpa-onnx-tts-travis-burmaster
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/travis-burmaster/agentbox/tree/main/agentfork/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/travis-burmaster/agentbox --skill sherpa-onnx-tts-travis-burmaster

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Cloud text-to-speech services require internet access, send your text to third-party servers, and incur per-request costs. This Skill converts text to speech entirely offline using the sherpa-onnx runtime, keeping all audio generation local and private. ## Core Features & Use Cases - Offline Text-to-Speech: Synthesizes WAV audio from text using the sherpa-onnx CLI with VITS/Piper voice models, with no network connection required. - Cross-Platform Runtime: Provides prebuilt runtime downloads for macOS, Linux, and Windows, plus a downloadable en_US Lessac voice model. - Configurable Voices: Supports swapping in any model from the sherpa-onnx tts-models release and overriding model, tokens, and data files via environment variables or CLI flags. - Use Case: A privacy-focused voice assistant running in an isolated environment can speak responses aloud by generating tts.wav files locally without sending any text to a cloud API. ## Quick Start Ask the agent to run the sherpa-onnx-tts wrapper with your text, for example: generate a WAV file saying "Hello from local TTS" using the sherpa-onnx-tts skill.

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-tts wrapper with a downloaded sherpa-onnx runtime and voice model. Run the CLI with your text and an output path, for example producing tts.wav, and all synthesis happens locally with no network access.

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

Download the platform-specific sherpa-onnx runtime archive and a voice model such as vits-piper-en_US-lessac-high, then extract them into the tools directory. Set SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR in the openclaw.json skill configuration.

Does sherpa-onnx TTS work on Windows?

Yes, a Windows x64 runtime build is available for download. On Windows, invoke the wrapper through node, passing the output file and text as arguments.

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

Yes, you can download any model from the sherpa-onnx tts-models release and point SHERPA_ONNX_MODEL_DIR to it. If the model directory contains multiple .onnx files, set SHERPA_ONNX_MODEL_FILE or pass --model-file to select one.

Why does sherpa-onnx TTS fail to find the model file?

This happens when the model directory contains multiple .onnx files or the environment variables are unset. Set SHERPA_ONNX_MODEL_FILE, or pass --model-file, --tokens-file, or --data-dir to override the defaults explicitly.