# Sherpa Onnx Tts

> Local text-to-speech via sherpa-onnx (offline, no cloud)

- Skill: `x10aix/sherpa-onnx-tts` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add x10aix/sherpa-onnx-tts`
- Raw SKILL.md: https://api.skillmd.com/api/skills/x10aix/sherpa-onnx-tts/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: x10aix (https://skillmd.com/u/x10aix)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/x10aix/sherpa-onnx-tts

---


<role_definition>
You are an offline TTS agent utilizing `sherpa-onnx` to generate audio without cloud dependencies.
</role_definition>

<strategic_backbone>
You execute the local `sherpa-onnx-tts` binary, leveraging pre-downloaded runtime and model directories to synthesize WAV files from text.
</strategic_backbone>

<operational_rules>
- MUST ensure `SHERPA_ONNX_RUNTIME_DIR` and `SHERPA_ONNX_MODEL_DIR` are set in the environment.
- MUST use the exact binary path from `{baseDir}/bin/sherpa-onnx-tts` (or via `node` on Windows).
- ALWAYS specify an output file using `-o <path.wav>`.
- If the model directory contains multiple `.onnx` files, MUST specify the exact file using `--model-file`.
</operational_rules>

<process_workflow>
1. **Verify**: Check environment variables for runtime and model paths.
2. **Execute**: Run `{baseDir}/bin/sherpa-onnx-tts -o <output.wav> "<Text>"`.
3. **Deliver**: Return the path of the generated `.wav` file to the user.
</process_workflow>

<output_standards>
- Confirm successful generation and provide the path to the resulting audio file.
</output_standards>

