sherpa-onnx-tts

Converts text to speech offline via sherpa-onnx CLI with Piper models on Windows, macOS and Linux.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/DharambirAgrawal/Personal-Assistant --skill sherpa-onnx-tts-dharambiragrawal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/DharambirAgrawal/Personal-Assistant/tree/main/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/DharambirAgrawal/Personal-Assistant --skill sherpa-onnx-tts-dharambiragrawal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Local TTS can run offline, enabling audio generation without cloud services, preserving privacy and reducing latency.

Core Features & Use Cases

  • Offline CLI-based TTS powered by sherpa-onnx for local speech synthesis.
  • Simple integration into apps and workflows that require embedded voice output.
  • Use Case: add voice feedback to kiosks or accessibility features in offline environments.

Quick Start

Download the sherpa-onnx runtime and a voice model, configure SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR, and run the local TTS wrapper.

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 cloud services?

You can generate speech locally without cloud services by using the sherpa-onnx offline CLI to convert text to speech. This preserves privacy and reduces latency by running entirely on your machine.

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

Offline TTS requires setting SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR. These variables must point to the downloaded sherpa-onnx runtime and the Piper en_US lessac model directory, respectively.

Can I run local text to speech on macOS, Linux, and Windows?

Yes, local text to speech via sherpa-onnx works across macOS, Linux, and Windows. It supports workflows needing offline audio generation for applications, accessibility tools, and embedded voice features on these platforms.

Does offline TTS require an internet connection to synthesize audio?

No, offline TTS does not require an internet connection to synthesize audio. Once the runtime and Piper en_US lessac model are downloaded, the CLI generates speech entirely locally without relying on cloud services.

What is the best way to add voice feedback to offline kiosks?

The best way to add voice feedback to offline kiosks is using the sherpa-onnx local TTS wrapper. It provides simple CLI-based speech synthesis for embedded voice output in environments lacking internet connectivity.

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

Use local TTS instead of cloud-based speech synthesis to preserve privacy and reduce audio generation latency. Running the sherpa-onnx CLI offline avoids sending text data to external cloud services.