Skip to content

Gradium

Gradium is a bundled text-to-speech provider for OpenClaw. The plugin can render normal audio replies (WAV), voice-note-compatible Opus output, and 8 kHz u-law audio for telephony surfaces.

PropertyValue
Provider idgradium
AuthGRADIUM_API_KEY or config apiKey
Base URLhttps://api.gradium.ai (default)
Default voiceEmma (YTpq7expH9539ERJ)

Create a Gradium API key, then expose it to OpenClaw with either an env var or the config key.

Terminal window
export GRADIUM_API_KEY="gsk_..."

The plugin checks the resolved apiKey first and falls back to the GRADIUM_API_KEY environment variable.

{
messages: {
tts: {
auto: "always",
provider: "gradium",
providers: {
gradium: {
voiceId: "YTpq7expH9539ERJ",
// apiKey: "${GRADIUM_API_KEY}",
// baseUrl: "https://api.gradium.ai",
},
},
},
},
}
KeyTypeDescription
messages.tts.providers.gradium.apiKeystringResolved API key. Supports ${ENV} and secret refs.
messages.tts.providers.gradium.baseUrlstringOverride the API origin. Trailing slashes are stripped. Defaults to https://api.gradium.ai.
messages.tts.providers.gradium.voiceIdstringDefault voice id used when no directive override is present.

The output audio format is selected automatically by the runtime based on the target surface and is not configurable from openclaw.json. See Output below.

NameVoice ID
EmmaYTpq7expH9539ERJ
KentLFZvm12tW_z0xfGo
TiffanyEu9iL_CYe8N-Gkx_
Christina2H4HY2CBNyJHBCrP
SydneyjtEKaLYNn6iif5PR
JohnKWJiFWu2O9nMPYcR
Arthur3jUdJyOi9pgbxBTK

Default voice: Emma.

When the active speech policy allows voice overrides, you can switch voices inline using a directive token. All of these resolve to the same voiceId override:

/voice:LFZvm12tW_z0xfGo
/voice_id:LFZvm12tW_z0xfGo
/voiceid:LFZvm12tW_z0xfGo
/gradium_voice:LFZvm12tW_z0xfGo
/gradiumvoice:LFZvm12tW_z0xfGo

If the speech policy disables voice overrides, the directive is consumed but ignored.

The runtime picks the output format from the target surface. The provider does not synthesize other formats today.

TargetFormatFile extSample rateVoice-compatible flag
Standard audiowav.wavproviderno
Voice noteopus.opusprovideryes
Telephonyulaw_8000n/a8 kHzn/a

Among configured TTS providers, Gradium’s auto-select order is 30. See Text-to-Speech for how OpenClaw picks the active provider when messages.tts.provider is not pinned.