Commit f8fe8277 by 甘术超
parents c6307b48 45d8fcfc
......@@ -22,9 +22,9 @@ Headers:
requestBody:
```
{
"userId":"130", // 用户ID
"userId":"test", // 用户ID
"message":msg, // 用户说的话
"nickname":"jinfengli", // 用户别名
"nickname":"test", // 用户别名
"chatKey":"",// 当chatKey为空时chat端会创建一个chatKey,第二次对话将需要在responseBody中取得chatKey
"title":"小狗小白" // BOT标题
}
......@@ -36,11 +36,11 @@ responseBody:
"code": 状态码, 成功时为1, 失败为0
"dialogList":[
{
"audio": "音频,格式base64,需解码 (可无)",
"audioUrl": "音频地址 (可无)",
"audio": "音频,格式base64,需解码,优先播放该tts",
"audioUrl": "tts音频地址,如果audio为空则播放该tts",
"npcName": "角色名称",
"person": "声音人物", // 当audioUrl, audio 都为空的时候,使用此参数调用第三方合成
"text": "文本信息msg"
"text": "文本信息msg,如果audioUrl为空则使用person合成tts"
}
]
"aipioneerUsername": "bot的引擎账号",
......@@ -52,7 +52,7 @@ responseBody:
"expire": 120000, // 单位毫秒
"plotImgUrl": "背景图地址",
"bgmUrl":"背景音乐地址",
"botPostData": {}, // 后台直接给前端的JSON
"botPostData": // bot后台直接给前端的数据,如果没有就是空
}
code: 20002 权限不足
code: 50001 作品不存在
......
......@@ -39,11 +39,10 @@ responseBody:
"dialogList":[
{
"npcName": 角色名称
"text": 文本信息msg
"audioUrl": 音频地址 (可无)
"audio": 音频,格式base64,需解码 (可无)
// audioUrl, audio均可为空,首先判断audio,其次判断audioUrl
"person": // 当audioUrl, audio 都为空的时候,使用此参数调用第三方合成- 绑定设备:{"oldUserId":"DeviceId4445dabe217233b67300bb917ad3c36acdebb94e","userId":"0","channelId":"sgtc-watch-sdk-t
"text": 文本信息msg,如果audioUrl为空则使用person合成tts
"audioUrl": tts音频地址,如果audio为空则播放该tts
"audio": 音频,格式base64,需解码,优先播放该tts
"person": // 当audioUrl, audio 都为空的时候,使用此参数调用第三方合成
"aipioneerUsername": // 作品用户名(BotID), 为空字符串表示中控BOT或者推荐BOT返回
}
]
......
......@@ -54,7 +54,7 @@ SUCCESS:
"组属性n":"组属性n的更新值"
}
],
"botPostData":{} // 后台直接给前端的JSON
"botPostData": // 后台直接给前端的数据
}
}
FAILTURE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment