Skip to main content

Documentation Index

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

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

Gradium 是 OpenClaw 内置的文本转语音提供商。它可以生成普通音频回复、兼容语音便签的 Opus 输出,以及用于电话类界面的 8 kHz u-law 音频。

设置

创建一个 Gradium API 密钥,然后将其提供给 OpenClaw:
export GRADIUM_API_KEY="gsk_..."
你也可以将该密钥存储在配置中的 messages.tts.providers.gradium.apiKey 下。

配置

{
  messages: {
    tts: {
      auto: "always",
      provider: "gradium",
      providers: {
        gradium: {
          voiceId: "YTpq7expH9539ERJ",
          // apiKey: "${GRADIUM_API_KEY}",
          // baseUrl: "https://api.gradium.ai",
        },
      },
    },
  },
}

语音

名称语音 ID
EmmaYTpq7expH9539ERJ
KentLFZvm12tW_z0xfGo
TiffanyEu9iL_CYe8N-Gkx_
Christina2H4HY2CBNyJHBCrP
SydneyjtEKaLYNn6iif5PR
JohnKWJiFWu2O9nMPYcR
Arthur3jUdJyOi9pgbxBTK
默认语音:Emma。

输出

  • 音频文件回复使用 WAV。
  • 语音便签回复使用 Opus,并标记为语音兼容。
  • 电话语音合成使用 8 kHz 的 ulaw_8000

相关内容