sherpa-onnx-tts

Synthesize speech from text locally using sherpa-onnx and save WAV files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Local text-to-speech processing on-device with sherpa-onnx for offline operation, privacy, and low latency.

Core Features & Use Cases

  • Offline TTS using sherpa-onnx CLI for on-device speech synthesis.
  • Supports per-OS runtime and model downloads with environment-driven configuration for runtime and model directories.
  • Use cases: generate voice prompts for offline assistants, read long text aloud in apps, or prototype TTS-enabled features without network access.

Quick Start

Synthesize speech from text using the sherpa-onnx-tts wrapper and save the result as a WAV 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 run offline text-to-speech synthesis locally without cloud services?

Offline text-to-speech synthesis can run locally using sherpa-onnx to generate speech on-device. This ensures privacy and low latency by synthesizing audio without network access, saving the output directly as a WAV file.

What do I need to configure to set up a local TTS runtime environment?

To set up a local TTS runtime, you need to configure environment variables for SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR. This directs the wrapper to the correct OS-specific runtime and model downloads for speech synthesis.

Can I generate voice prompts for offline assistants using local speech synthesis?

Yes, local speech synthesis supports generating voice prompts for offline assistants. It operates without cloud services, enabling on-device voice generation for offline demos and reading long text aloud in applications.

Does on-device speech synthesis work without an internet connection?

On-device speech synthesis works completely offline without an internet connection. By using sherpa-onnx locally, it processes text and generates speech audio entirely on your device, ensuring data privacy and low latency.

How do I save synthesized speech output as an audio file?

You can save synthesized speech output as a WAV file by using the sherpa-onnx-tts wrapper. The wrapper executes local speech synthesis and writes the resulting audio directly to disk for offline use.

Why use offline TTS instead of cloud-based speech synthesis?

Offline TTS is used instead of cloud-based speech synthesis to guarantee privacy and achieve low latency. It processes speech generation locally on-device, making it suitable for environments without network access.