sherpa-onnx-tts

Convert text to speech offline using sherpa-onnx across macOS, Linux, and Windows.

9|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/hongmaple0820/agent-academy --skill sherpa-onnx-tts-hongmaple0820
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/hongmaple0820/agent-academy/tree/main/skills/others/sherpa-onnx-tts
Command: npx skills add https://github.com/hongmaple0820/agent-academy --skill sherpa-onnx-tts-hongmaple0820

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Local text-to-speech generation in offline environments without cloud services, preserving privacy and reducing latency.

Core Features & Use Cases

  • Offline TTS: generate speech without network access.
  • Cross-platform: macOS, Linux, Windows runtime and models.
  • Lightweight integration: wrap a CLI into a simple API for agents and apps.

Quick Start

Download the sherpa-onnx runtime and a voice model, set SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR, then run the wrapper to generate speech from text.

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 text-to-speech without cloud services?

To generate offline text-to-speech without cloud services, this Skill wraps a CLI into a simple API for agents and apps, utilizing the sherpa-onnx runtime and voice models locally.

Does offline text-to-speech work across macOS, Linux, and Windows environments?

Yes, offline text-to-speech works across macOS, Linux, and Windows environments by utilizing the cross-platform sherpa-onnx runtime and compatible voice models.

What environment variables do I need to set for local TTS setup?

For local TTS setup, you must set the SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR environment variables, which the wrapper uses to automatically discover runtime and model assets.

What is the best way to integrate offline TTS into desktop apps and accessibility tooling?

The best way to integrate offline TTS into desktop apps and accessibility tooling is using this lightweight wrapper, which provides a simple API around the sherpa-onnx runtime for local speech generation.

Why use offline local TTS instead of cloud-based text-to-speech?

You should use offline local TTS instead of cloud-based text-to-speech to preserve privacy and significantly reduce latency in environments without network access.

Can I use explicit paths for runtime and model assets instead of automatic discovery?

Yes, you can use explicit paths for runtime and model assets, although the wrapper can also automatically discover model files if the required environment directories are set.