Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gradium.ai/llms.txt

Use this file to discover all available pages before exploring further.

OpenClaw is a self-hosted agent gateway for messaging channels, agent sessions, and tool-driven workflows. Its bundled Gradium speech provider lets OpenClaw agents turn replies into audio, voice-note-compatible Opus output, or 8 kHz u-law audio for telephony surfaces.

OpenClaw Gradium provider

OpenClaw’s provider reference for Gradium TTS.

GitHub integration

View the OpenClaw Gradium extension source.

Gradium TTS guide

Gradium WebSocket TTS setup and streaming behavior.

Setup

Create a Gradium API key, then expose it to OpenClaw with an environment variable:
export GRADIUM_API_KEY=gd_your_api_key_here
OpenClaw can also read the key from messages.tts.providers.gradium.apiKey in ~/.openclaw/openclaw.json.

Basic config

Set gradium as the TTS provider and choose a Gradium voice ID.
{
  "messages": {
    "tts": {
      "auto": "always",
      "provider": "gradium",
      "providers": {
        "gradium": {
          "voiceId": "YTpq7expH9539ERJ",
          "apiKey": "${GRADIUM_API_KEY}"
        }
      }
    }
  }
}
Use auto: "always" when every eligible agent reply should include audio. Use OpenClaw’s session commands or per-agent config when you need more targeted behavior.

Provider settings

SettingDescription
messages.tts.providerSet to gradium to make Gradium the primary TTS provider.
messages.tts.providers.gradium.apiKeyGradium API key. You can use ${GRADIUM_API_KEY} or rely on the environment variable.
messages.tts.providers.gradium.voiceIdDefault Gradium voice ID for replies.
messages.tts.providers.gradium.baseUrlOptional Gradium API origin override. Defaults to https://api.gradium.ai.

Voices

OpenClaw’s Gradium provider defaults to Emma.
VoiceVoice ID
EmmaYTpq7expH9539ERJ
KentLFZvm12tW_z0xfGo
TiffanyEu9iL_CYe8N-Gkx_
Christina2H4HY2CBNyJHBCrP
SydneyjtEKaLYNn6iif5PR
JohnKWJiFWu2O9nMPYcR
Arthur3jUdJyOi9pgbxBTK

Output behavior

OpenClaw chooses the Gradium output format from the destination surface:
DestinationGradium output
Standard audio replyWAV audio file
Voice-note channelOpus voice-compatible audio
Telephony surfaceulaw_8000 at 8 kHz

When to use OpenClaw with Gradium

  • Messaging-channel agents: speak replies across OpenClaw-supported channels without building per-channel audio delivery.
  • Voice-note workflows: send spoken responses as voice-compatible channel media.
  • Telephony surfaces: synthesize 8 kHz u-law audio for phone-oriented integrations.
  • Self-hosted agent stacks: keep OpenClaw’s local gateway model while using Gradium for speech output.