sherpa-onnx-tts

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

sherpa-onnx-tts

Local TTS using the sherpa-onnx offline CLI.

Install

  1. Download the runtime for your OS (extracts into ~/.hanzo-bot/tools/sherpa-onnx-tts/runtime)
  2. Download a voice model (extracts into ~/.hanzo-bot/tools/sherpa-onnx-tts/models)

Update ~/.hanzo-bot/hanzo-bot.json:

{
  skills: {
    entries: {
      "sherpa-onnx-tts": {
        env: {
          SHERPA_ONNX_RUNTIME_DIR: "~/.hanzo-bot/tools/sherpa-onnx-tts/runtime",
          SHERPA_ONNX_MODEL_DIR: "~/.hanzo-bot/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: