发送语音消息
POST
/参数可以通过CDN里面上传得到,上传的文件可以通过指令 ffmpeg -i 1.m4a -ss 82 -to 85 -c:a libopencore_amrnb -ar 8000 -ab 12.2k -ac 1 output.amr 转换
请求参数
Body 参数application/json
data
object
必需
conversation_id
string
必需
file_id
string
必需
size
integer
必需
voice_time
integer
必需
aes_key
string
必需
md5
string
必需
client_id
integer
必需
type
string
必需
示例
{
"data": {
"conversation_id": "S:16888505xxxx2_7881302xxx998",
"file_id": "3076020102046f306d0201000204283cabaa02030f4241020478d366b4020461b6f9c90432313633393338313434383034345f66323137336335352d616630652d346538652d393934632d62353464623966663835383302010002027d300410f086bb9d1596c59a3fd2041968bcf11e0201050201000400",
"size": 32041,
"voice_time": 10,
"aes_key": "32663538393364343234373936653838",
"md5": "f086bb9d1596c59a3fd2041968bcf11e"
},
"client_id": 1,
"type": "WW_SEND_VOICE_MSG"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 1 年前