# 语音转文字回调 - 42072

[被动回调] 企业配置了语音自动转文字开关时,接收语音消息转文字后会推送此回调

# 注意事项:

msg_id非全局唯一

encoding_content解密后的结构

{
  "data": {
    "msg_id": "消息id",
    "robot_id": "接收的机器人id",
    "text": "语音转文字内容",
    "contact_id": "chat_type 为1时值为用户id, 为2时值为群聊id",
    "sender_id": "发送者的id",
    "chat_type": 1
  },
  "err_code": 0,
  "err_msg": "success",
  "event_type": 42072,
  "hint": "全局唯一标识",
  "robot_id": "接收的机器人idaccajGCLFnR79qb2mDhoGmS",
  "serial_no": ""
}

说明

字段 类型 说明
event_type int 事件类型,42072
msg_id string 消息id
robot_id string 接收的机器人id
text string 语音转文字内容
contact_id string chat_type 为1时值为用户id, 为2时值为群聊id
sender_id string 发送者的id
chat_type int 1为私聊消息,2为群聊消息
最后更新时间: 2026/5/27 11:29:20