sherpa-onnx-tts

Synthesize speech offline with sherpa-onnx across macOS, Linux, and Windows.

Updated Dec 6, 2016
One-click install
npx skills add https://github.com/majunbao/learn --skill sherpa-onnx-tts-majunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/majunbao/learn/tree/main/openclaw_tags/openclaw-2026.3.2/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/majunbao/learn --skill sherpa-onnx-tts-majunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Local TTS generation without cloud services using sherpa-onnx, enabling offline speech synthesis on desktops and servers.

Core Features & Use Cases

  • Offline TTS: synthesize speech locally without internet access.
  • Cross-platform: works on macOS, Linux, and Windows with a consistent wrapper.
  • Voice model customization: download and switch voice models to vary tone and voice.
  • Easy integration: wrapper in the skill folder allows quick embedding into apps or scripts.

Quick Start

Install the sherpa-onnx runtime and a voice model, configure SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR, then run the wrapper to synthesize speech.

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 locally without internet access using sherpa-onnx?

Offline text-to-speech generation without internet access uses sherpa-onnx to synthesize speech locally on your machine. You configure environment variables for the runtime and model directories, then execute a wrapper to produce audio output entirely offline.

Can I run local TTS synthesis on macOS, Linux, and Windows?

Local TTS synthesis works consistently across macOS, Linux, and Windows environments. The cross-platform wrapper provides a unified interface for offline speech generation, allowing you to integrate voice synthesis into desktop applications or server workflows on any supported operating system.

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

Offline TTS with sherpa-onnx requires setting two environment variables: SHERPA_ONNX_RUNTIME_DIR for the runtime directory and SHERPA_ONNX_MODEL_DIR for the voice model directory. These paths allow the wrapper to locate the necessary runtime files and model data for audio synthesis.

How do I customize the voice tone for offline speech synthesis?

Voice tone customization in offline speech synthesis is achieved by downloading and switching voice models. You place different models in the configured model directory, allowing the local TTS wrapper to produce varied tones and voices without requiring an internet connection.

What's the best way to embed local TTS into my desktop application?

The best way to embed local TTS into a desktop application is using the provided wrapper in the skill folder. After installing the sherpa-onnx runtime and voice models, you integrate the wrapper directly into your scripts or apps for offline voice generation.

Does offline TTS generation require cloud services or API keys?

Offline TTS generation does not require cloud services or API keys. It performs local speech synthesis entirely without internet access using sherpa-onnx, making it suitable for secure environments, privacy-sensitive applications, and research workflows on desktops or servers.