sherpa-onnx-tts
What it does
It guides an AI agent through the sherpa-onnx text-to-speech tool, which runs voice models locally. It is for people who want spoken audio without sending their text to a cloud service.
When to use it
- ✓When you want spoken audio made on your own computer without internet access.
- ✓When you need to keep the text private and avoid a cloud voice service.
- ✓When you want to set up a local voice model for your OpenClaw assistant.
Skill link
https://github.com/openclaw/openclaw/blob/main/skills/sherpa-onnx-tts/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Make a spoken audio file of this paragraph using the local voice, and save it as narration.wav.”
5 new skills a week. 1 minute to read.
How it works
The skill uses a downloaded runtime and voice model that it keeps in your OpenClaw tools folder, then writes the speech to an audio file. You can pick a different voice model if you want another sound.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
sherpa-onnx-tts
Local TTS using the sherpa-onnx offline CLI.
Install
- Download the runtime for your OS (extracts into
$OPENCLAW_STATE_DIR/tools/sherpa-onnx-tts/runtime, default~/.openclaw/tools/sherpa-onnx-tts/runtime) - Download a voice model (extracts into
$OPENCLAW_STATE_DIR/tools/sherpa-onnx-tts/models, default~/.openclaw/tools/sherpa-onnx-tts/models)
Resolve the active state directory first:
STATE_DIR="${OPENCLAW_STATE_DIR:-$HOME/.openclaw}"
Then write those resolved paths into the active OpenClaw config file ($OPENCLAW_CONFIG_PATH, default ~/.openclaw/openclaw.json):
{
skills: {
entries: {
"sherpa-onnx-tts": {
env: {
SHERPA_ONNX_RUNTIME_DIR: "/path/to/your/state-dir/tools/sherpa-onnx-tts/runtime",
SHERPA_ONNX_MODEL_DIR: "/path/to/your/state-dir/tools/sherpa-onnx-tts/models/vits-piper-en_US-lessac-high",
},
},
},
},
}
The wrapper lives in this skill folder. Run it directly, or add the wrapper to PATH:
export PATH="{baseDir}/bin:$PATH"
Usage
{baseDir}/bin/sherpa-onnx-tts -o ./tts.wav "Hello from local TTS."
Notes:
- Pick a different model from the sherpa-onnx
tts-modelsrelease if you want another voice. - If the model dir has multiple
.onnxfiles, setSHERPA_ONNX_MODEL_FILEor pass--model-file. - You can also pass
--tokens-fileor--data-dirto override the defaults. - Windows: run
node {baseDir}\\bin\\sherpa-onnx-tts -o tts.wav "Hello from local TTS."
FAQ
Do I need an internet connection?
Not for making speech, because the runtime and voice model run offline once installed.
How do I install it?
You download the runtime for your system and a voice model, then point the settings to those folders.
What if there are several model files?
You set the model file or pass it directly, so the tool knows which one to use.
Details
Original description by the author
Local text-to-speech via sherpa-onnx (offline, no cloud)
repo: openclaw/openclaw
Popularity
- GitHub stars
- 394k
- Ranking position
- #78
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
Similar skills
heartmula
260kLets your agent generate full songs from lyrics and style tags using HeartMuLa, an open-source music model that can run on your own computer.
songsee
260kCreates spectrogram and multi-panel feature images of an audio file, such as mel, chroma, and tempo views, from the command line.
audio-jingle
101kMakes your agent generate audio like jingles and sound effects. It can create music and voices, saving the result as an audio file.