| Property | Value |
|---|---|
| Provider id | gradium |
| Auth | GRADIUM_API_KEY 或配置 apiKey |
| Base URL | https://api.gradium.ai(默认) |
| Default voice | Emma (YTpq7expH9539ERJ) |
设置
创建一个 Gradium API 密钥,然后通过环境变量或配置键将其提供给 OpenClaw。- Env var
- Config key
apiKey,然后回退到 GRADIUM_API_KEY 环境变量。
配置
| Key | Type | Description |
|---|---|---|
messages.tts.providers.gradium.apiKey | string | 解析后的 API 密钥。支持 ${ENV} 和 secret 引用。 |
messages.tts.providers.gradium.baseUrl | string | 覆盖 API 源地址。会移除末尾斜杠。默认值为 https://api.gradium.ai。 |
messages.tts.providers.gradium.speakerVoiceId | string | 当没有指令覆盖时使用的默认语音 ID。 |
openclaw.json 配置。参见下方的 输出。
语音
| 名称 | 语音 ID |
|---|---|
| Emma | YTpq7expH9539ERJ |
| Kent | LFZvm12tW_z0xfGo |
| Tiffany | Eu9iL_CYe8N-Gkx_ |
| Christina | 2H4HY2CBNyJHBCrP |
| Sydney | jtEKaLYNn6iif5PR |
| John | KWJiFWu2O9nMPYcR |
| Arthur | 3jUdJyOi9pgbxBTK |
每条消息的语音覆盖
当当前语音策略允许语音覆盖时,你可以使用指令令牌在行内切换语音。对于提供商原生语音 ID,请使用speakerVoiceId。
输出
运行时会根据目标场景选择输出格式。当前提供商不会生成其他格式。| Target | Format | File ext | Sample rate | Voice-compatible flag |
|---|---|---|---|---|
| Standard audio | wav | .wav | provider | no |
| Voice note | opus | .opus | provider | yes |
| Telephony | ulaw_8000 | n/a | 8 kHz | n/a |
自动选择顺序
在已配置的 TTS 提供商中,Gradium 的自动选择顺序为30。关于当 messages.tts.provider 未固定时 OpenClaw 如何选择当前提供商,请参见 文本转语音。