@kithjs/openclaw
v0.2.1
Published
Kith voice plugin for OpenClaw — natural TTS with sentence chunking, slang expansion, multi-provider fallback, and avatar events.
Maintainers
Readme
@kithjs/openclaw
Kith voice plugin for OpenClaw — drop-in natural TTS for your OpenClaw agents.
Install
openclaw plugins install @kithjs/openclawOr via npm:
npm install @kithjs/openclawConfigure
In your openclaw.yaml:
plugins:
entries:
kith-voice:
provider: elevenlabs # or openai_tts, cartesia, fallback
voiceId: kPzsL2i3teMYv0FxEYQ6
modelId: eleven_v3
enableSlang: true
enableEmoji: trueFor multi-provider fallback:
plugins:
entries:
kith-voice:
provider: fallback
fallbackProviders:
- elevenlabs
- openai_tts
- cartesia
voiceId: kPzsL2i3teMYv0FxEYQ6What It Does
When installed, Kith processes all agent voice output through its pipeline:
- Sentence-aware chunking — no more mid-thought pauses
- Slang expansion — "fr" → "for real", "lol" → real laughter
- Pronunciation overrides — teach the TTS to say names and terms correctly
- Emoji → emotion — emojis become avatar emotion events
- Multi-provider fallback — ElevenLabs → OpenAI → Cartesia, with circuit breaker
Standalone Use
You can also use the processing functions directly without OpenClaw:
import { processTextForSpeech, buildPipelineConfig } from "@kithjs/openclaw";
const chunks = processTextForSpeech("Hey! That was fire 🔥 lol", {
provider: "elevenlabs",
enableSlang: true,
enableEmoji: true,
});
// → ["Hey! That was fire", "[laughs]"]