发送语音消息
请求参数
| 参数名 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
wechat-token | header | string | 必填 | — |
appId | body | string | 必填 | 设备ID |
toWxid | body | string | 必填 | 好友/群的ID |
voiceUrl | body | string | 必填 | 语音文件的链接,仅支持silk格式 |
voiceDuration | body | integer | 必填 | 语音时长,单位毫秒 |
请求示例
{
"appId": "",
"toWxid": "",
"voiceUrl": "",
"voiceDuration": 0
}响应示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"toWxid": "*********@chatroom",
"createTime": 1704357563,
"msgId": 640355967,
"newMsgId": 2321462558768366600,
"type": null
}
}