Skip to content

Commit 5852fb9

Browse files
macmac
authored andcommitted
修改协议
1 parent a22e665 commit 5852fb9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/xrobot/platform/websocket.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,15 @@ WebSocket 支持 **🎵 音频数据帧**(二进制方式)以及 **文本帧
260260
"session_id": "session_12345",
261261
"type": "listen",
262262
"state": "start", // "start": 开始监听, "stop": 结束监听, "detect": 唤醒词检测
263-
"mode": "manual" // 支持"manual"、"auto"模式
263+
"mode": "realtime" // 支持"manual"、"auto"、"realtime"模式,推荐使用realtime
264264
}
265265
```
266266

267267
**监听模式说明:**
268-
- **manual**: 手动触发模式,设备端主动控制
269-
- **⚡ auto**: 自动触发模式,全双工,检测到语音则打断AI说话
268+
- **manual**: 手动触发模式,设备端可以按键控制
269+
- **auto**: 唤醒词触发模式,设备端发送唤醒词打断
270+
- **realtime**: 自由对话模式, 全双工,检测到语音则打断AI说话
271+
270272

271273
##### 3. Abort 消息
272274
终止当前说话(TTS播放)或语音通道。

0 commit comments

Comments
 (0)