Skip to content
Skillpedia
Audio & voice394k · #78

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.md

Copy 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

Use this skill to help me: https://github.com/openclaw/openclaw/blob/main/skills/sherpa-onnx-tts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  1. Download the runtime for your OS (extracts into $OPENCLAW_STATE_DIR/tools/sherpa-onnx-tts/runtime, default ~/.openclaw/tools/sherpa-onnx-tts/runtime)
  2. 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-models release if you want another voice.
  • If the model dir has multiple .onnx files, set SHERPA_ONNX_MODEL_FILE or pass --model-file.
  • You can also pass --tokens-file or --data-dir to 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills