Inworld 是一个流式文本转语音(TTS)提供商。在 OpenClaw 中,它会为外发回复合成音频(默认是 MP3,语音便笺使用 OGG_OPUS),并为 Voice Call 等电话语音渠道合成 PCM 音频。 OpenClaw 会向 Inworld 的流式 TTS 端点发送请求,将返回的 base64 音频分块拼接为一个单独的缓冲区,然后将结果交给标准的回复音频处理管线。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.
| 详情 | 值 |
|---|---|
| 网站 | inworld.ai |
| 文档 | docs.inworld.ai/tts/tts |
| 认证 | INWORLD_API_KEY(HTTP Basic,来自控制台的 Base64 凭证) |
| 默认语音 | Sarah |
| 默认模型 | inworld-tts-1.5-max |
入门指南
设置你的 API 密钥
从你的 Inworld 控制台复制凭证(Workspace > API Keys),并将其设置为环境变量。该值会原样作为 HTTP Basic 凭证发送,因此不要再次对它进行 Base64 编码,也不要将其转换为 bearer token。
配置选项
| 选项 | 路径 | 说明 |
|---|---|---|
apiKey | messages.tts.providers.inworld.apiKey | Base64 控制台凭证。未设置时回退到 INWORLD_API_KEY。 |
baseUrl | messages.tts.providers.inworld.baseUrl | 覆盖 Inworld API 基础 URL(默认 https://api.inworld.ai)。 |
voiceId | messages.tts.providers.inworld.voiceId | 语音标识符(默认 Sarah)。 |
modelId | messages.tts.providers.inworld.modelId | TTS 模型 id(默认 inworld-tts-1.5-max)。 |
temperature | messages.tts.providers.inworld.temperature | 采样温度 0..2(可选)。 |
说明
身份验证
身份验证
模型
模型
支持的模型 id:
inworld-tts-1.5-max(默认)、inworld-tts-1.5-mini、inworld-tts-1-max、inworld-tts-1。音频输出
音频输出
回复默认使用 MP3。当渠道目标为
voice-note 时,OpenClaw 会请求 Inworld 返回 OGG_OPUS,这样音频会以原生语音气泡的形式播放。电话语音合成则使用 22050 Hz 的原始 PCM 以供电话桥接使用。自定义端点
自定义端点
使用
messages.tts.providers.inworld.baseUrl 覆盖 API 主机。发送请求前会去掉末尾斜杠。相关内容
文本转语音
TTS 概览、提供商以及
messages.tts 配置。配置
包括
messages.tts 设置在内的完整配置参考。提供商
所有内置的 OpenClaw 提供商。
故障排除
常见问题和调试步骤。