Inworld 是流式文字转语音(TTS)提供商,支持 MP3(默认)、OGG_OPUS(语音消息)和 PCM(电话信道)输出。
| 属性 | 值 |
|---|---|
| Provider ID | inworld |
| 认证 | INWORLD_API_KEY(HTTP Basic,Base64 dashboard 凭证) |
| Base URL | https://api.inworld.ai |
| 默认语音 | Sarah |
| 默认模型 | inworld-tts-1.5-max |
| 输出格式 | MP3(默认)、OGG_OPUS(语音消息)、PCM 22050 Hz(电话) |
认证说明
INWORLD_API_KEY 的值是从 Inworld dashboard(Workspace > API Keys)复制的 Base64 编码凭证,直接作为 HTTP Basic 凭证发送,不要再次 Base64 编码,也不要转换为 Bearer token。
快速开始
{
messages: {
tts: {
auto: "always",
provider: "inworld",
providers: {
inworld: {
voiceId: "Sarah",
modelId: "inworld-tts-1.5-max",
},
},
},
},
}配置选项
| 选项 | 路径 | 说明 |
|---|---|---|
apiKey | messages.tts.providers.inworld.apiKey | Base64 凭证,回退到 INWORLD_API_KEY |
baseUrl | ...inworld.baseUrl | 覆盖 API base URL |
voiceId | ...inworld.voiceId | 语音 ID,默认 Sarah |
modelId | ...inworld.modelId | TTS 模型,默认 inworld-tts-1.5-max |
temperature | ...inworld.temperature | 采样温度 0..2(可选) |
支持的模型
inworld-tts-1.5-max(默认)inworld-tts-1.5-miniinworld-tts-1-maxinworld-tts-1
输出格式选择
| 目标 | 格式 | 采样率 |
|---|---|---|
| 标准音频 | wav | provider 默认 |
| 语音消息 | opus | provider 默认 |
| 电话 | ulaw_8000 | 8 kHz |
自动选择顺序(auto-select order):30。
相关链接
- provider-elevenlabs — 另一个 TTS/STT 提供商
- provider-gradium — Gradium TTS 提供商
- providers — 所有 provider 总览