sherpa-onnx-tts

Generate offline speech audio from text using sherpa-onnx.

87|20|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/openaeon/OpenAEON --skill sherpa-onnx-tts-openaeon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/openaeon/OpenAEON/tree/main/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/openaeon/OpenAEON --skill sherpa-onnx-tts-openaeon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It solves the problem of producing text-to-speech audio without relying on cloud services or external APIs.

Core Features & Use Cases

  • Offline local TTS: Uses the sherpa-onnx offline CLI to synthesize speech entirely on your machine.
  • Configurable models: Lets you choose a voice model by setting runtime/model directories and optional model-file/tokens/data overrides.
  • Practical outputs: Produces an audio file (e.g., WAV) from provided input text for demos, assistive UX, and local content generation.

Quick Start

Set SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR in your openaeon.json for the sherpa-onnx-tts skill, then run: {baseDir}/bin/sherpa-onnx-tts -o ./tts.wav "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 from text offline using local TTS?

You can generate speech from text offline using local TTS by running the sherpa-onnx engine directly on your machine, which synthesizes audio into a WAV file without relying on cloud services or external APIs.

What environment variables do I need to set for local speech synthesis with sherpa-onnx?

Local speech synthesis with sherpa-onnx requires setting SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR, while SHERPA_ONNX_MODEL_FILE, TOKENS_FILE, and DATA_DIR are optional overrides for configuring your voice model.

Does offline text to speech work for deterministic voice rendering in automated workflows?

Offline text to speech works for deterministic voice rendering in automated workflows by validating model artifacts locally before invoking the sherpa-onnx CLI, ensuring consistent on-device audio generation.

Can I use the ONNX runtime for text to speech without an internet connection?

You can use the ONNX runtime for text to speech without an internet connection because the sherpa-onnx engine operates entirely offline, validating local model artifacts to produce audio files independently.

What is the best way to configure voice models for offline audio generation?

The best way to configure voice models for offline audio generation is to define runtime and model directories in your configuration file, allowing optional model, token, and data file overrides to select specific voices.

Why does my offline TTS fail before invoking the sherpa-onnx CLI?

Offline TTS fails before invoking the sherpa-onnx CLI when required model artifacts are missing or environment variables like SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR are not properly configured.