sherpa-onnx-tts

Convert input text into offline speech audio using sherpa-onnx.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/JOHNNYWHITEMIKE/openclaw --skill sherpa-onnx-tts-johnnywhitemike
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/JOHNNYWHITEMIKE/openclaw/tree/main/openclaw/.openclaw/openclaw/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/JOHNNYWHITEMIKE/openclaw --skill sherpa-onnx-tts-johnnywhitemike

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turns plain text into spoken audio locally, without relying on cloud text-to-speech services.

Core Features & Use Cases

  • Offline local TTS: Uses sherpa-onnx’s offline CLI to synthesize speech on your machine.
  • Runtime + voice model install: Downloads the correct sherpa-onnx runtime for your OS and a TTS voice model (e.g., Piper en_US lessac).
  • Configurable model selection: Supports choosing a specific .onnx model via SHERPA_ONNX_MODEL_FILE (or --model-file) and overriding locations with tokens/data directory options.
  • Use Case: A developer or content creator wants to generate consistent voice prompts for demos, tutorials, or small apps while keeping all processing local.

Quick Start

Add the skill wrapper to your PATH and run it to synthesize speech audio into a WAV file: {baseDir}/bin/sherpa-onnx-tts -o ./tts.wav "Hello from local TTS."

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 speech from text locally without cloud calls?

To generate speech from text locally without cloud calls, use offline text-to-speech tools like sherpa-onnx. This approach synthesizes spoken audio directly on your machine, ensuring data privacy and eliminating network dependency for your TTS generation tasks.

What is needed to set up offline TTS with sherpa-onnx?

To set up offline TTS with sherpa-onnx, configure two environment variables: SHERPA_ONNX_RUNTIME_DIR pointing to the installed runtime, and SHERPA_ONNX_MODEL_DIR pointing to your extracted voice model directory.

Can I use local text-to-speech on macOS, Linux, and Windows?

Yes, you can use local text-to-speech on macOS, Linux, and Windows. The sherpa-onnx runtime supports these operating systems, allowing you to download the correct runtime version and generate WAV audio files locally across different platforms.

How do I specify a different voice model for offline speech generation?

To specify a different voice model for offline speech generation, use the SHERPA_ONNX_MODEL_FILE environment variable or the --model-file command line option. This allows you to select a specific .onnx model file for your audio output.

What is the best way to create voice prompts for demos offline?

The best way to create voice prompts for demos offline is using a local CLI text-to-speech tool like sherpa-onnx. It processes text input into WAV audio files on your machine, providing consistent voice generation without relying on external cloud services.