跳轉到主要內容

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

相關