Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
f8fe8277
Commit
f8fe8277
authored
Mar 24, 2021
by
甘术超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.1.81:8000/jinfengli/jiaoyou_doc
parents
c6307b48
45d8fcfc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
app_xiaowu_api.md
app_doc/app_xiaowu_api.md
+6
-6
center_control_api.md
app_doc/center_control_api.md
+4
-5
chat_server_post_json_doc.md
chat_server/chat_server_post_json_doc.md
+1
-1
No files found.
app_doc/app_xiaowu_api.md
View file @
f8fe8277
...
@@ -22,9 +22,9 @@ Headers:
...
@@ -22,9 +22,9 @@ Headers:
requestBody:
requestBody:
```
```
{
{
"userId":"
130
", // 用户ID
"userId":"
test
", // 用户ID
"message":msg, // 用户说的话
"message":msg, // 用户说的话
"nickname":"
jinfengli
", // 用户别名
"nickname":"
test
", // 用户别名
"chatKey":"",// 当chatKey为空时chat端会创建一个chatKey,第二次对话将需要在responseBody中取得chatKey
"chatKey":"",// 当chatKey为空时chat端会创建一个chatKey,第二次对话将需要在responseBody中取得chatKey
"title":"小狗小白" // BOT标题
"title":"小狗小白" // BOT标题
}
}
...
@@ -36,11 +36,11 @@ responseBody:
...
@@ -36,11 +36,11 @@ responseBody:
"code": 状态码, 成功时为1, 失败为0
"code": 状态码, 成功时为1, 失败为0
"dialogList":[
"dialogList":[
{
{
"audio": "音频,格式base64,需解码
(可无)
",
"audio": "音频,格式base64,需解码
,优先播放该tts
",
"audioUrl": "
音频地址 (可无)
",
"audioUrl": "
tts音频地址,如果audio为空则播放该tts
",
"npcName": "角色名称",
"npcName": "角色名称",
"person": "声音人物", // 当audioUrl, audio 都为空的时候,使用此参数调用第三方合成
"person": "声音人物", // 当audioUrl, audio 都为空的时候,使用此参数调用第三方合成
"text": "文本信息msg"
"text": "文本信息msg
,如果audioUrl为空则使用person合成tts
"
}
}
]
]
"aipioneerUsername": "bot的引擎账号",
"aipioneerUsername": "bot的引擎账号",
...
@@ -52,7 +52,7 @@ responseBody:
...
@@ -52,7 +52,7 @@ responseBody:
"expire": 120000, // 单位毫秒
"expire": 120000, // 单位毫秒
"plotImgUrl": "背景图地址",
"plotImgUrl": "背景图地址",
"bgmUrl":"背景音乐地址",
"bgmUrl":"背景音乐地址",
"botPostData":
{}, // 后台直接给前端的JSON
"botPostData":
// bot后台直接给前端的数据,如果没有就是空
}
}
code: 20002 权限不足
code: 20002 权限不足
code: 50001 作品不存在
code: 50001 作品不存在
...
...
app_doc/center_control_api.md
View file @
f8fe8277
...
@@ -39,11 +39,10 @@ responseBody:
...
@@ -39,11 +39,10 @@ responseBody:
"dialogList":[
"dialogList":[
{
{
"npcName": 角色名称
"npcName": 角色名称
"text": 文本信息msg
"text": 文本信息msg,如果audioUrl为空则使用person合成tts
"audioUrl": 音频地址 (可无)
"audioUrl": tts音频地址,如果audio为空则播放该tts
"audio": 音频,格式base64,需解码 (可无)
"audio": 音频,格式base64,需解码,优先播放该tts
// audioUrl, audio均可为空,首先判断audio,其次判断audioUrl
"person": // 当audioUrl, audio 都为空的时候,使用此参数调用第三方合成
"person": // 当audioUrl, audio 都为空的时候,使用此参数调用第三方合成- 绑定设备:{"oldUserId":"DeviceId4445dabe217233b67300bb917ad3c36acdebb94e","userId":"0","channelId":"sgtc-watch-sdk-t
"aipioneerUsername": // 作品用户名(BotID), 为空字符串表示中控BOT或者推荐BOT返回
"aipioneerUsername": // 作品用户名(BotID), 为空字符串表示中控BOT或者推荐BOT返回
}
}
]
]
...
...
chat_server/chat_server_post_json_doc.md
View file @
f8fe8277
...
@@ -54,7 +54,7 @@ SUCCESS:
...
@@ -54,7 +54,7 @@ SUCCESS:
"组属性n":"组属性n的更新值"
"组属性n":"组属性n的更新值"
}
}
],
],
"botPostData":
{} // 后台直接给前端的JSON
"botPostData":
// 后台直接给前端的数据
}
}
}
}
FAILTURE:
FAILTURE:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment