sherpa-onnx-tts
Local text-to-speech via sherpa-onnx (offline, no cloud)
- License 许可
- Apache-2.0
- 最近更新
- 2026-04-25
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- sherpa-onnx-tts
- metadata
- { "openclaw": { "os": [ "darwin", "linux", "win32" ], "emoji": "?", "install": [ { "id": "download-runtime-macos", "os": [ "darwin" ], "url": "https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.12.23/sherpa-onnx-v1.12.23-osx-universal2-shared.tar.bz2", "kind": "download", "label": "Download sherpa-onnx runtime (macOS)", "archive": "tar.bz2", "extract": true, "targetDir": "runtime", "stripComponents": 1 }, { "id": "download-runtime-linux-x64", "os": [ "linux" ], "url": "https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.12.23/sherpa-onnx-v1.12.23-linux-x64-shared.tar.bz2", "kind": "download", "label": "Download sherpa-onnx runtime (Linux x64)", "archive": "tar.bz2", "extract": true, "targetDir": "runtime", "stripComponents": 1 }, { "id": "download-runtime-win-x64", "os": [ "win32" ], "url": "https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.12.23/sherpa-onnx-v1.12.23-win-x64-shared.tar.bz2", "kind": "download", "label": "Download sherpa-onnx runtime (Windows x64)", "archive": "tar.bz2", "extract": true, "targetDir": "runtime", "stripComponents": 1 }, { "id": "download-model-lessac", "url": "https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-lessac-high.tar.bz2", "kind": "download", "label": "Download Piper en_US lessac (high)", "archive": "tar.bz2", "extract": true, "targetDir": "models" } ], "requires": { "env": [ "SHERPA_ONNX_RUNTIME_DIR", "SHERPA_ONNX_MODEL_DIR" ] } } }
- description
- Local text-to-speech via sherpa-onnx (offline, no cloud)
02 资源文件 2
- 参考文档.skillfish.json223 B
- 其他bin/sherpa-onnx-tts4.7 KB
03 SKILL.md 正文
sherpa-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."
04 同仓库更多 Skills
zyte-api-automation
Automate Zyte API tasks via Rube MCP (Composio). Always search tools first for current schemas.
zylvie-automation
Automate Zylvie tasks via Rube MCP (Composio). Always search tools first for current schemas.
zoominfo-automation
Automate Zoominfo tasks via Rube MCP (Composio). Always search tools first for current schemas.
zoho_mail-automation
Automate Zoho Mail tasks via Rube MCP (Composio): email sending, folders, labels, and mailbox management. Always search tools first for current schemas.
zoho_invoice-automation
Automate Zoho Invoice tasks via Rube MCP (Composio): invoices, estimates, expenses, clients, and payment tracking. Always search tools first for current schemas.
zoho_inventory-automation
Automate Zoho Inventory tasks via Rube MCP (Composio): items, orders, warehouses, shipments, and stock management. Always search tools first for current schemas.