Local TTS via sherpa-onnx

VerifiedCaution

Provides local, offline text-to-speech using the sherpa-onnx CLI with Piper voice models. No cloud dependency.

Sby Skills Guide Bot
Data & AIIntermediate
8/29/2026
Claude CodeCodex
#text-to-speech#offline#sherpa-onnx#audio#cli

Recommended for

Automated summary

Produces local text-to-speech through the offline sherpa-onnx CLI, with no cloud service involved.

Strengths

  • Runs fully offline, so no audio or text leaves the machine
  • Multi-platform install entries (macOS, Linux, Windows x64) bundle runtimes plus a preconfigured Piper model
  • Thin CLI wrapper writes a WAV file directly with the -o flag
  • Voices and model assets are swappable via --model-file, --tokens-file and --data-dir

Limitations

  • Requires manually downloading the runtime and model, then wiring SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR into the OpenClaw config
  • Ships a single default voice (Piper en_US lessac); other languages mean fetching a different model
  • The Windows instructions end mid-command, so win32 usage needs extra guesswork
When to use it

Use it when you need a spoken-audio file generated from text without relying on any cloud API.

When not to use it

Skip it if you need studio-grade multilingual voices or real-time streaming synthesis.

Security analysis

Caution
Quality score82/100

This is a legitimate offline TTS installer with pinned runtime hashes and no obfuscation, secret exfiltration, or destructive commands. The network downloads and execution of third-party binaries are expected for the task, so it merits caution rather than safe.

Findings
  • •Downloads and extracts third-party prebuilt binaries from GitHub releases; runtime archives are pinned with sha256, but the voice model download lacks a checksum.
  • •Instructs writing environment paths into the active OpenClaw config file, which is legitimate but modifies user configuration.
  • •Runs a bundled wrapper that executes the downloaded sherpa-onnx binary.
How this analysis is made

Examples

Basic offline speech file
Use the sherpa-onnx-tts skill to render the sentence 'Hello from local TTS.' into ./tts.wav without any network calls.
Custom model selection
Generate speech with sherpa-onnx-tts but point SHERPA_ONNX_MODEL_FILE at a different .onnx voice in my model directory and save the output to greeting.wav.
Setup and config wiring
Install the sherpa-onnx runtime and the Piper en_US lessac model, then write the resolved SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR paths into my OpenClaw config.

name: sherpa-onnx-tts description: "Local text-to-speech via sherpa-onnx (offline, no cloud)" metadata: { "openclaw": { "emoji": "🔉", "os": ["darwin", "linux", "win32"], "requires": { "env": ["SHERPA_ONNX_RUNTIME_DIR", "SHERPA_ONNX_MODEL_DIR"] }, "install": [ { "id": "download-runtime-macos", "kind": "download", "os": ["darwin"], "url": "https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.13.6/sherpa-onnx-v1.13.6-osx-universal2-shared.tar.bz2", "sha256": "05ed5839bbdfb2da36bb9095961e6b4cfa470d55e29a9795100627dbc36df2ba", "archive": "tar.bz2", "extract": true, "stripComponents": 1, "targetDir": "runtime", "label": "Download sherpa-onnx runtime (macOS)", }, { "id": "download-runtime-linux-x64", "kind": "download", "os": ["linux"], "url": "https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.13.6/sherpa-onnx-v1.13.6-linux-x64-shared.tar.bz2", "sha256": "58cc7d360fdedf9702954e8b585eb400bbee8668484bf25e4461d5d22ba439d8", "archive": "tar.bz2", "extract": true, "stripComponents": 1, "targetDir": "runtime", "label": "Download sherpa-onnx runtime (Linux x64)", }, { "id": "download-runtime-win-x64", "kind": "download", "os": ["win32"], "url": "https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.13.6/sherpa-onnx-v1.13.6-win-x64-shared-MD-Release.tar.bz2", "sha256": "27efaed17a64a40fd3059ac24195dcf4ec0521c999906d288cc5107cbbf4cedc", "archive": "tar.bz2", "extract": true, "stripComponents": 1, "targetDir": "runtime", "label": "Download sherpa-onnx runtime (Windows x64)", }, { "id": "download-model-lessac", "kind": "download", "url": "https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-lessac-high.tar.bz2", "archive": "tar.bz2", "extract": true, "targetDir": "models", "label": "Download Piper en_US lessac (high)", }, ], }, }

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

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/local-tts-via-sherpa-onnx-mte1lkij/download' --output '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md.part' && mv '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md.part' '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md' && test -s '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/sherpa-onnx-tts' && cp -R '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij' '.claude/skills/sherpa-onnx-tts'

Codex
test -f '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md' && test -s '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/sherpa-onnx-tts' && cp -R '.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij' '.agents/skills/sherpa-onnx-tts'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/local-tts-via-sherpa-onnx-mte1lkij'

openskills read 'local-tts-via-sherpa-onnx-mte1lkij'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/local-tts-via-sherpa-onnx-mte1lkij/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills