sherpa-onnx-tts

Generate speech audio files locally with sherpa-onnx text-to-speech.

3|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/ybsa/sovereign-kernel --skill sherpa-onnx-tts-ybsa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sherpa-onnx-tts
Source: https://github.com/ybsa/sovereign-kernel/tree/main/crates/sk-tools/skills/sherpa-onnx-tts
Command: npx skills add https://github.com/ybsa/sovereign-kernel --skill sherpa-onnx-tts-ybsa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a local, offline text-to-speech (TTS) solution, eliminating the need for cloud-based services and ensuring privacy and accessibility.

Core Features & Use Cases

  • Local TTS Engine: Utilizes the sherpa-onnx library for speech synthesis directly on your machine.
  • Offline Operation: Functions without an internet connection, ideal for environments with limited connectivity.
  • Customizable Voices: Supports various voice models, allowing for different speech characteristics.
  • Use Case: Generate audio files for presentations, accessibility tools, or voiceovers without incurring API costs or relying on external services.

Quick Start

Use the sherpa-onnx-tts skill to convert the text "Hello from local TTS." into an audio file named tts.wav.

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 offline without relying on cloud-based services?

Offline speech synthesis converts text to audio directly on your machine using the sherpa-onnx engine, ensuring privacy and eliminating API costs. It generates audio files like tts.wav locally without requiring an internet connection.

What environment variables need to be set for local text-to-speech synthesis?

Local text-to-speech synthesis requires setting the SHERPA_ONNX_RUNTIME_DIR and SHERPA_ONNX_MODEL_DIR environment variables. These point the sherpa-onnx engine to the necessary runtime files and voice models for generating speech audio files.

Can I customize the voice characteristics for offline speech synthesis?

Offline speech synthesis supports various voice models, allowing for customizable speech characteristics. By configuring different voice models within the sherpa-onnx engine, you can alter the generated audio output to suit your specific presentation or accessibility needs.

What is the best way to create voiceovers for presentations without incurring API costs?

The best way to create voiceovers without API costs is using a local text-to-speech solution. By running the sherpa-onnx engine offline, you generate speech audio files directly on your machine, avoiding external service dependencies and recurring usage fees.

Does offline text-to-speech work in environments with limited internet connectivity?

Offline text-to-speech works perfectly in environments with limited connectivity because it operates entirely without an internet connection. The sherpa-onnx engine performs local speech synthesis, ensuring accessibility and privacy regardless of network availability.

Why do I need to specify a model directory for offline speech synthesis?

Specifying a model directory via SHERPA_ONNX_MODEL_DIR is required for offline speech synthesis because the sherpa-onnx engine needs local access to voice models. These models define the speech characteristics used to generate the final audio files.