sherpa-onnx-tts

Synthesize WAV audio from plain text using sherpa-onnx runtime.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Yogi-076/Vajrascan.on --skill sherpa-onnx-tts-yogi-076
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/Yogi-076/Vajrascan.on/tree/main/moltbot/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/Yogi-076/Vajrascan.on --skill sherpa-onnx-tts-yogi-076

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables local, offline speech synthesis so users can generate high-quality audio from text without sending data to cloud services, preserving privacy and reducing latency.

Core Features & Use Cases

  • Offline TTS CLI: Uses the sherpa-onnx runtime and local voice models to synthesize WAV audio from plain text on macOS, Linux, and Windows.
  • Privacy-first workflows: Ideal for privacy-sensitive applications, on-device automation, and environments with no internet access.
  • Easy integration: Includes a wrapper that can be added to PATH and configured via environment variables for scripted or programmatic use.

Quick Start

Run the sherpa-onnx-tts wrapper to generate a WAV file from text, for example produce a file named tts.wav speaking the phrase "Hello from local TTS".

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 audio from text offline without cloud services?

Offline text-to-speech synthesis generates WAV audio from plain text locally using the sherpa-onnx runtime, eliminating cloud dependency and preserving data privacy.

What environment variables do I need to configure for local TTS synthesis?

Local TTS synthesis requires configuring SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR environment variables to specify the sherpa-onnx runtime path and compatible voice model directory.

Can I run offline speech synthesis on macOS, Linux, and Windows?

Offline speech synthesis runs natively on macOS, Linux, and Windows, supporting cross-platform CLI automation and on-device voice generation without internet access.

What is the best way to integrate offline TTS into scripted automation?

Offline TTS integration uses a wrapper added to PATH and configured via environment variables, enabling programmatic text-to-speech synthesis for scripted workflows and embedded systems.

Do I need internet access for privacy-first text-to-speech workflows?

Privacy-first text-to-speech workflows operate entirely offline without internet access, making them ideal for environments where cloud TTS is unavailable or undesirable.

What audio format does offline text-to-speech synthesis output?

Offline text-to-speech synthesis outputs WAV audio files, such as generating a file named tts.wav from the input phrase, suitable for playback and further processing.