openclaw-stt
v1.0.2
Published
OpenClaw 语音输入插件 - 通过浏览器麦克风进行语音识别后,与 OpenClaw 对话
Readme
OpenClaw Speech To Text
OpenClaw 语音输入插件 — 通过浏览器麦克风进行语音识别后,与 OpenClaw 对话。
功能特性
| 功能 | 说明 | |------|------| | 语音识别 | 浏览器原生 Web Speech API,实时语音转文字 | | 自动认证 | 自动注入 Gateway Token,无需手动配置 | | 多语言支持 | 支持中文、英文等多种语言识别 |
安装
安装插件
openclaw plugins install openclaw-stt打开 HTTP API 服务
openclaw config set gateway.http.endpoints.chatCompletions.enabled true重启 Gateway:
openclaw gateway restart使用方法
命令打开
在任意聊天窗口输入:
/stt手动打开
浏览器访问:http://127.0.0.1:18789/plugin/openclaw-stt/
使用流程
- 授权麦克风 — 首次使用需允许浏览器访问麦克风
- 点击麦克风按钮/长按空格键 — 开始语音输入
- 说话 — 语音自动识别为文字
- 发送 — 再次点击按钮或按 Enter 发送
- 接收回复 — AI 回复以文字显示
技术架构
HTTP 路由
| 路径 | 说明 |
|------|------|
| /plugin/openclaw-stt/ | 语音输入 Web 界面 |
| /plugin/openclaw-stt/chat | 聊天代理接口(POST) |
常见问题
语音识别不工作
- 浏览器不支持 —— 推荐使用 Edge、Chrome(国内访问谷歌语音转换业务需要梯子)、或 Safari
- 未授权麦克风 —— 检查浏览器地址栏左侧的麦克风图标
无法连接 Gateway
- 确认 Gateway 正在运行:
openclaw gateway status
401 未授权错误
- 重启 Gateway:
openclaw gateway restart
卸载
openclaw plugins uninstall openclaw-stt
openclaw gateway restart