sherpa-onnx
| Version | 2026.144.1443 |
| Repo | superproject |
offline text-to-speech — the sherpa-onnx ONNX engine plus a baked en_US VITS voice, no runtime download Downloads the sherpa-onnx shared runtime release (executables under runtime/bin, the ONNX Runtime + C-API shared libraries under runtime/lib) and the vits-piper-en_US-lessac-high voice into ~/.local/share/sherpa-onnx. Verifiable end to end: the offline-tts engine binary is present and executable, its shared libraries are in place, and the VITS voice model + tokens ship in the image so synthesis runs fully offline with no network fetch.
Acceptance plan
Section titled “Acceptance plan”This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.
| Intent | Step |
|---|---|
run |
mkdir=${HOME}/.local/share/sherpa-onnx/runtime |
run |
mkdir=${HOME}/.local/share/sherpa-onnx/models |
run |
command=case “${BUILD_ARCH}” in x86_64) SUFFIX=“linux-x64” ;; aarch64) SUFFIX=“linux-aarch64” ;; *) echo “Unsupported arch: ${BUILD_ARCH}”; exit 1 ;; esac curl -fsSL “https://github.com/k2-fsa/sherpa-onnx/releases/download/${SHERPA_VERSION}/sherpa-onnx-${SHERPA_VERSION}-${SUFFIX}-shared.tar.bz2” \ | tar -xjf - –strip-components=1 -C ~/.local/share/sherpa-onnx/runtime |
run |
command=curl -fsSL “https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-lessac-high.tar.bz2” \ | tar -xjf - -C ~/.local/share/sherpa-onnx/models |
check |
the sherpa-onnx offline-tts engine binary is installed under the runtime bin dir |
check |
the offline-tts engine binary is executable |
check |
the sherpa-onnx C-API shared library ships under the runtime lib dir |
check |
the bundled ONNX Runtime shared library ships alongside it so the engine can link |
check |
the en_US-lessac-high VITS voice model is baked into the image for offline synthesis |
check |
the voice model tokens file ships next to the model |
check |
file=${HOME}/.local/share/sherpa-onnx/runtime/bin/sherpa-onnx |