← Back to Plugins
Tools

Kokoro Rvc

slimelab-ai By slimelab-ai 👁 12 views ▲ 0 votes

OpenClaw speech provider plugin for kokoro-rvc

GitHub

Install

openclaw plugins install -l

README

# openclaw-kokoro-rvc-plugin

OpenClaw speech provider plugin for a local `kokoro-rvc` server.

It is a small fork of the VoxCPM2 provider shape: OpenClaw sends text to an HTTP `/tts` endpoint, receives base64 WAV audio, and plays it through the normal speech path.

## Backend

Run the backend from:

<https://github.com/slimelab-ai/kokoro-rvc>

Default backend URL:

```text
http://127.0.0.1:7862
```

## Install

```bash
bash <(curl -fsSL https://raw.githubusercontent.com/slimelab-ai/openclaw-kokoro-rvc-plugin/main/install.sh)
```

Local dev install:

```bash
openclaw plugins install -l /path/to/openclaw-kokoro-rvc-plugin
```

## Configure

Interactive:

```bash
~/.openclaw/extensions/kokoro-rvc/configure.sh
```

Manual:

```bash
openclaw config set plugins.entries.kokoro-rvc.enabled true
openclaw config set plugins.entries.kokoro-rvc.config.baseUrl http://127.0.0.1:7862
openclaw config set plugins.entries.kokoro-rvc.config.defaultVoice am_eric
```

Optional config keys:

- `baseUrl`
- `apiKey`
- `username`
- `password`
- `defaultVoice`
- `defaultSpeed`
- `defaultPitch`
- `defaultIndexRate`
- `defaultProtect`
- `defaultF0Method`
- `requestTimeoutMs`

## API Contract

The backend must provide:

- `POST /tts`
- JSON body with `text`
- optional `voice`, `speed`, `pitch`, `index_rate`, `protect`, `f0_method`
- JSON response with base64 `audio`, `sample_rate`, and `duration`

Example:

```bash
curl -s http://127.0.0.1:7862/tts \
  -H 'content-type: application/json' \
  -d '{"text":"hello from openclaw","voice":"am_eric"}'
```
tools

Comments

Sign in to leave a comment

Loading comments...