sherpa-onnx-tts

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

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/Kastalien-Research/kastalien-factory --skill sherpa-onnx-tts-kastalien-research
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/Kastalien-Research/kastalien-factory/tree/main/lettabot/.skills/sherpa-onnx-tts
Command: npx skills add https://github.com/Kastalien-Research/kastalien-factory --skill sherpa-onnx-tts-kastalien-research

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Local text-to-speech generation without cloud services, enabling offline, private voice synthesis for applications and demos.

Core Features & Use Cases

  • Offline TTS: Generate speech directly on your machine using sherpa-onnx runtimes and voice models.
  • Cross-Platform: Works on macOS, Linux, and Windows with a small wrapper and model/runtime management.
  • Easy Integration: Provides a simple CLI wrapper and runtime/model directory guidance for quick setup and testing.

Quick Start

Run the sherpa-onnx wrapper with a configured runtime and model directory to synthesize 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 speech from text locally without a cloud service?

You can generate offline text-to-speech locally using sherpa-onnx by running a CLI wrapper that manages runtime and model assets to synthesize audio directly on your machine without internet access.

How do I set up environment variables for sherpa-onnx offline TTS?

To configure offline TTS, set the SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR environment variables, or provide them as explicit flags, to point the wrapper to your valid runtime and voice model directories.

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

Offline text-to-speech via sherpa-onnx works across macOS, Linux, and Windows, using a small cross-platform CLI wrapper that manages runtime and voice model assets to generate speech locally on any of these operating systems.

What do I need to run local text-to-speech synthesis on my machine?

To run local text-to-speech synthesis, you need a valid sherpa-onnx runtime, a voice model, configured runtime and model directories, and the CLI wrapper to process the text and produce audio output.

When should I use an offline TTS wrapper instead of a cloud API?

You should use an offline TTS wrapper when you need private voice synthesis or operate in offline environments, as it processes text and generates speech locally without sending data to external cloud services.

Why does my local text-to-speech wrapper fail to produce audio output?

Local text-to-speech fails if the SHERPA_ONNX_RUNTIME_DIR or SHERPA_ONNX_MODEL_DIR environment variables are missing or point to invalid runtime and model assets required by the wrapper to generate speech.