
Sherpa ONNX TTS
FreeOffline text-to-speech conversion using Sherpa ONNX.
Free · Opens the source repo
What Sherpa ONNX TTS does
Sherpa ONNX TTS is a local text-to-speech (TTS) tool that leverages the Sherpa ONNX framework to convert text into speech without relying on cloud services. This is particularly useful for developers and designers who need a reliable and private solution for generating voice outputs directly on their machines. The tool operates via a command-line interface (CLI), making it straightforward to integrate into various workflows or applications that require TTS functionality.
To get started, users must download the appropriate runtime for their operating system and a voice model. The installation process involves setting up the environment variables in the OpenClaw configuration file, which directs the tool to the necessary runtime and model directories. Once configured, the TTS can be invoked easily from the command line, allowing for quick text-to-speech conversions with minimal setup.
The flexibility of Sherpa ONNX TTS allows users to choose from different voice models available in the Sherpa ONNX repository, catering to various preferences for voice characteristics. Users can also customize their commands by specifying model files or token files, enhancing the adaptability of the tool for different use cases. This makes Sherpa ONNX TTS suitable for applications ranging from accessibility features to multimedia projects where voice output is required.
Overall, Sherpa ONNX TTS is an excellent choice for those seeking a local, efficient, and customizable text-to-speech solution that operates entirely offline, ensuring privacy and control over the generated audio.
When to use it
Use this tool when you need to generate speech from text in an offline environment, such as for applications requiring privacy or low latency.
When not to use it
This skill may not be suitable for scenarios where cloud-based TTS services are preferred for their extensive voice options or advanced features.
What you can build with it
Generating Voiceovers for Videos
Use Sherpa ONNX TTS to create voiceovers for multimedia projects, ensuring high-quality audio without internet dependency.
Creating Accessibility Features
Implement local TTS capabilities in applications to enhance accessibility for users who benefit from auditory information.
Prototyping Interactive Applications
Quickly prototype applications that require voice feedback or narration by utilizing the command-line TTS functionality.
How to install Sherpa ONNX TTS
View source1. Install with the skills CLI
npx skills add openclaw/openclaw/sherpa-onnx-tts --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by openclawsherpa-onnx-tts
Local TTS using the sherpa-onnx offline CLI.
Install
- Download the runtime for your OS (extracts into
$OPENCLAW_STATE_DIR/tools/sherpa-onnx-tts/runtime, default~/.openclaw/tools/sherpa-onnx-tts/runtime) - Download a voice model (extracts into
$OPENCLAW_STATE_DIR/tools/sherpa-onnx-tts/models, default~/.openclaw/tools/sherpa-onnx-tts/models)
Resolve the active state directory first:
STATE_DIR="${OPENCLAW_STATE_DIR:-$HOME/.openclaw}"
Then write those resolved paths into the active OpenClaw config file ($OPENCLAW_CONFIG_PATH, default ~/.openclaw/openclaw.json):
{
skills: {
entries: {
"sherpa-onnx-tts": {
env: {
SHERPA_ONNX_RUNTIME_DIR: "/path/to/your/state-dir/tools/sherpa-onnx-tts/runtime",
SHERPA_ONNX_MODEL_DIR: "/path/to/your/state-dir/tools/sherpa-onnx-tts/models/vits-piper-en_US-lessac-high",
},
},
},
},
}
The wrapper lives in this skill folder. Run it directly, or add the wrapper to PATH:
export PATH="{baseDir}/bin:$PATH"
Usage
{baseDir}/bin/sherpa-onnx-tts -o ./tts.wav "Hello from local TTS."
Notes:
- Pick a different model from the sherpa-onnx
tts-modelsrelease if you want another voice. - If the model dir has multiple
.onnxfiles, setSHERPA_ONNX_MODEL_FILEor pass--model-file. - You can also pass
--tokens-fileor--data-dirto override the defaults. - Windows: run
node {baseDir}\\bin\\sherpa-onnx-tts -o tts.wav "Hello from local TTS."
Frequently asked questions about Sherpa ONNX TTS
Similar skills
Latchshot Page Capture
Capture public web pages as images or PDFs easily.
Convert Word to Markdown
Effortlessly convert .docx files to Markdown format.
Convert PDF to Markdown
Transform PDF documents into Markdown for easier analysis.
Convert Excel to Markdown
Effortlessly convert Excel files to Markdown format.
MarkItDown
Convert documents to Markdown for analysis and ingestion.
File Conversion
Easily convert files between 999 formats.
