sherpa-onnx-tts

Generate offline speech audio as WAV files using sherpa-onnx TTS.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/Polealpha/XINNIAN_PI --skill sherpa-onnx-tts-polealpha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/Polealpha/XINNIAN_PI/tree/main/app%20windows/vendor/openclaw-runtime/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/Polealpha/XINNIAN_PI --skill sherpa-onnx-tts-polealpha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables high-quality offline text-to-speech so you can generate spoken audio without relying on cloud APIs or internet connectivity.

Core Features & Use Cases

  • Offline TTS generation: Converts provided text into a WAV audio file using the sherpa-onnx offline CLI.
  • Local voice model support: Uses a voice model package from local storage (including tokens and espeak-ng data) and auto-detects the ONNX model when possible.
  • Cross-platform runtime bootstrap: Guides you to download the correct sherpa-onnx runtime for macOS, Linux x64, or Windows x64 and configure OpenClaw environment paths.

Quick Start

Update ~/.openclaw/openclaw.json with SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR pointing to your downloaded runtime and model, then run the wrapper command to synthesize speech into tts.wav.

Frequently Asked Questions about sherpa-onnx-tts

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

FAQPage Schema
How do I generate offline speech audio without relying on cloud APIs?

Offline speech synthesis generates audio from text without cloud APIs. This Skill uses sherpa-onnx offline TTS with local model assets to convert text into a WAV file for local voice playback.

What environment variables do I need to configure for sherpa-onnx offline TTS?

Configuring sherpa-onnx offline TTS requires setting SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR. You can also define SHERPA_ONNX_MODEL_FILE, SHERPA_ONNX_TOKENS_FILE, and SHERPA_ONNX_DATA_DIR to point to local voice model assets.

Can I use local voice models for speech synthesis on edge deployments?

Yes, local voice models support speech synthesis on edge deployments. The Skill uses a local voice model package from storage, including tokens and espeak-ng data, and auto-detects the ONNX model to generate audio offline.

Does sherpa-onnx offline TTS support macOS, Linux, and Windows runtimes?

Yes, sherpa-onnx offline TTS supports macOS, Linux x64, and Windows x64 runtimes. The Skill provides cross-platform runtime bootstrap, guiding you to download the correct runtime and configure OpenClaw environment paths.

What is the best way to convert text to a WAV file for scripted audio generation?

The best way to convert text to a WAV file for scripted audio generation is using offline TTS. This Skill executes the sherpa-onnx-offline-tts CLI to synthesize speech into a WAV file for local playback workflows.