sherpa-onnx-tts

Convert text to speech into an audio file using the sherpa-onnx runtime.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Local TTS enables generating speech from text entirely on-device, eliminating reliance on networked cloud services and preserving privacy.

Core Features & Use Cases

  • On-device speech synthesis using sherpa-onnx runtime and pre-downloaded models for offline operation.
  • Cross-platform support across macOS, Linux, and Windows for on-device assistants, accessibility tools, and demos.
  • Easy to integrate: point the wrapper at a model directory, provide text, and save the resulting audio file.

Quick Start

Run sherpa-onnx-tts to convert text into an audio file.

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 dependency?

To generate speech locally, this Skill uses the sherpa-onnx runtime to convert input text into an audio file entirely on-device. It requires setting the SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR environment variables to locate the runtime and pre-downloaded models.

Can I use sherpa-onnx for offline text-to-speech on macOS, Linux, and Windows?

Yes, this Skill provides cross-platform offline text-to-speech support for macOS, Linux, and Windows. It leverages the sherpa-onnx runtime and pre-downloaded models to enable private speech synthesis across these operating systems without requiring networked cloud services.

What do I need to set up before running local TTS with sherpa-onnx?

Before running local TTS, you must set the SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR environment variables. These point the wrapper binary at the required sherpa-onnx runtime directory and the directory containing your pre-downloaded offline voice models.

Why choose on-device speech synthesis over cloud text-to-speech services?

On-device speech synthesis is chosen to preserve privacy by eliminating reliance on networked cloud services. It uses the local sherpa-onnx runtime to generate audio files directly from text, ensuring sensitive data remains completely offline during the speech synthesis process.