sherpa-onnx-tts

by Unknown v1.0.0

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

What It Does

Converts text input into speech using the sherpa-onnx offline CLI.

When To Use

When you need text-to-speech functionality without relying on cloud services, such as in environments with limited or no internet connectivity, or when privacy is a concern.

Inputs

Text to be converted into speech.

Outputs

An audio file (e.g., .wav) containing the synthesized speech.

Limitations

Requires downloading and configuring the sherpa-onnx runtime and voice models. The quality of the synthesized speech depends on the chosen voice model. Initial setup might require some manual configuration.

Installation

1. Clone the openclaw repository or download the sherpa-onnx-tts skill files. 2. Manually download the sherpa-onnx runtime for your operating system from the specified URLs and extract it to a directory. 3. Download a compatible voice model and extract it to a separate directory. 4. Set the `SHERPA_ONNX_RUNTIME_DIR` and `SHERPA_ONNX_MODEL_DIR` environment variables to point to the respective directories. 5. Add the skill's `bin` directory to your system's PATH for easy access.

View Cline documentation

1. Open the Cursor IDE. 2. Navigate to the skills directory and locate the sherpa-onnx-tts skill. 3. Follow the installation instructions in the SKILL.md file, which involve downloading the runtime and voice model, and configuring the environment variables in the `openclaw.json` file.

View Cursor IDE documentation

1. Download the sherpa-onnx runtime for your OS using the provided download steps. These will extract to `~/.openclaw/tools/sherpa-onnx-tts/runtime`. 2. Download a voice model. It extracts into `~/.openclaw/tools/sherpa-onnx-tts/models`. 3. Add the following to your `~/.openclaw/openclaw.json` file under `skills.entries['sherpa-onnx-tts']`: `env: { SHERPA_ONNX_RUNTIME_DIR: '~/.openclaw/tools/sherpa-onnx-tts/runtime', SHERPA_ONNX_MODEL_DIR: '~/.openclaw/tools/sherpa-onnx-tts/models/vits-piper-en_US-lessac-high' }`

View Claude (Anthropic) documentation

Have a Skill to Share?

Join the community and help AI agents learn new capabilities. Submit your skill and reach thousands of developers.