OpenClaw 使用 ElevenLabs 进行文本转语音、使用 Scribe v2 进行批量语音转文本,并使用 Scribe v2 Realtime 进行流式 STT。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.
| 能力 | OpenClaw 使用场景 | 默认值 |
|---|---|---|
| 文本转语音 | messages.tts / talk | eleven_multilingual_v2 |
| 批量语音转文本 | tools.media.audio | scribe_v2 |
| 流式语音转文本 | Voice Call 流式传输或 Google Meet realtime.transcriptionProvider | scribe_v2_realtime |
身份验证
在环境中设置ELEVENLABS_API_KEY。为兼容现有的 ElevenLabs 工具,也接受
XI_API_KEY。
文本转语音
modelId 设置为 eleven_v3 可使用 ElevenLabs v3 TTS。OpenClaw 保持
eleven_multilingual_v2 作为现有安装的默认值。
语音转文本
对传入的音频附件和短录音语音片段使用 Scribe v2:/v1/speech-to-text,并带上
model_id: "scribe_v2"。存在语言提示时,会映射到 language_code。
流式 STT
内置的elevenlabs 插件为 Voice Call 和 Google Meet Agent 模式的流式转录注册 Scribe v2 Realtime。
| 设置 | 配置路径 | 默认值 |
|---|---|---|
| API key | plugins.entries.voice-call.config.streaming.providers.elevenlabs.apiKey | 回退到 ELEVENLABS_API_KEY / XI_API_KEY |
| 模型 | ...elevenlabs.modelId | scribe_v2_realtime |
| 音频格式 | ...elevenlabs.audioFormat | ulaw_8000 |
| 采样率 | ...elevenlabs.sampleRate | 8000 |
| 提交策略 | ...elevenlabs.commitStrategy | vad |
| 语言 | ...elevenlabs.languageCode | (未设置) |
Voice Call 以 8 kHz G.711 u-law 接收 Twilio 媒体。ElevenLabs realtime
provider 默认使用
ulaw_8000,因此电话帧可以无需转码直接转发。plugins.entries.google-meet.config.realtime.transcriptionProvider 设置为
"elevenlabs",并在
plugins.entries.google-meet.config.realtime.providers.elevenlabs 下配置相同的提供商块。