跳到主要内容

WebSocket

WebSocket 同时承担两类能力:

  • 文本聊天:/ws/v1/chat
  • 实时语音:/ws/v1/realtime

When to use it

  • 需要持续双向连接
  • 需要低延迟文本互动
  • 需要实时语音输入输出

Voice requirements

启用实时语音前需要:

  • 服务启用 websocket
  • 配置 voice preset
  • 安装 MushroomAgent-core[voice]