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
李进峰
jiaoyou_doc
Commits
a89ed257
Commit
a89ed257
authored
Nov 23, 2023
by
jixudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 项目列表-角色.md
parent
b189fc14
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
786 additions
and
3 deletions
+786
-3
项目列表-角色.md
gameditor/前端接口/项目列表-角色.md
+786
-3
No files found.
gameditor/前端接口/项目列表-角色.md
View file @
a89ed257
**测试环
境URL**
:http://tx-gz14.heyqiwu.cn
**测试环
境URL**
:http://tx-gz14.heyqiwu.cn
...
@@ -68,7 +68,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/class/' \
...
@@ -68,7 +68,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/class/' \
**METHOD**
: DELETE
**METHOD**
: DELETE
**path**
: api/platform/design/npc/class
**path**
: api/platform/design/npc/class
/{npcClassId}/
**RequestHeaders:**
同创作平台请求header
**RequestHeaders:**
同创作平台请求header
...
@@ -116,7 +116,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/class/48177/' \
...
@@ -116,7 +116,7 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/class/48177/' \
### 更新NPC分类
### 更新NPC分类
**path**
: api/platform/design/npc/class
**path**
: api/platform/design/npc/class
/{id}/
**METHOD**
: PUT
**METHOD**
: PUT
...
@@ -336,4 +336,786 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/npc/class?npcClass
...
@@ -336,4 +336,786 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/npc/class?npcClass
}
}
```
```
### 获取语音合成参数数据
URL: api/platform/design/tts/speakers
METHOD: GET
RequestHeaders:
| key | value |
| :------------ | :----------------------------- |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 1604 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"online": {
"ProTencent17": {
"name": "腾智美(客服女声(精品))",
"sex": "女",
"mood": [
"正常"
],
"third_party": true
}
},
"offline": {
"TencentAI6_offline": {
"name": "腾欢馨",
"sex": "女",
"mood": [
"正常"
],
"third_party": true
}
}
}
}
```
### 试听语音
**METHOD**
: PUT
**path**
: api/platform/tts/api/tts
**RequestHeaders:**
同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求body字段说明
| key | type | required | description |
| -------- | ---- | -------- | ----------- |
| person | | yes | |
| pitch | | yes | 音调 |
| postDate | | yes | 提交日期 |
| speed | | yes | 语速 |
| text | | yes | |
| tone | | yes | |
| volume | | yes | 声音大小 |
| _type | | yes | 类型 |
#### 请求示例
```
js
curl
'http://tx-gz14.heyqiwu.cn/api/platform/tts/api/tts'
\
-
X
'PUT'
\
-
H
'Accept: application/json, text/plain, */*'
\
-
H
'Accept-Language: zh-CN,zh;q=0.9'
\
-
H
'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM01qTTNPREFzSW1WNGNDSTZNVGN3TURjek1EazRNQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLjZVdU1WZkhfRHQ3ekVlNUkxSGpPYnN6Ym9MRU9LUExvNUl3YzlvQkg0X1U6czAwcGVyczNjcmV0'
\
-
H
'Connection: keep-alive'
\
-
H
'Content-Type: application/json;charset=UTF-8'
\
-
H
'Origin: http://localhost:8080'
\
-
H
'Referer: http://localhost:8080/'
\
-
H
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
\
-
H
'botAccount: 1524195459'
\
-
H
'groupId: 49'
\
-
H
'mul: true'
\
-
H
'projectId: 963'
\
--
data
-
raw
'{"text":"这是一段测试文本,请听下音效,选择你认为合适的一套声音","pitch":0,"speed":1,"volume":0,"_type":"json","person":"Alyun10","tone":"正常","postDate":"2023-11-23T07:44:11.085Z"}'
\
--
compressed
\
--
insecure
```
#### 响应实例
```
json
{
"audio"
:
"http://tx-gz14.heyqiwu.cn/api/platform/tts//api/audio/tts?filename=%2Ftmp%2FAlyun10%2F%E6%AD%A3%E5%B8%B8%2FsYq1700725451152.mp3&exist=1"
,
"status"
:
200
}
```
### 获取所有角色实例
**METHOD**
: GET
**path**
: api/platform/design/npc/instance_by_project_id
**RequestHeaders:**
同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求body字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求示例
```
js
curl
'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/instance_by_project_id/1090/'
\
-
H
'Accept: application/json, text/plain, */*'
\
-
H
'Accept-Language: zh-CN,zh;q=0.9'
\
-
H
'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM01qTTNPREFzSW1WNGNDSTZNVGN3TURjek1EazRNQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLjZVdU1WZkhfRHQ3ekVlNUkxSGpPYnN6Ym9MRU9LUExvNUl3YzlvQkg0X1U6czAwcGVyczNjcmV0'
\
-
H
'Connection: keep-alive'
\
-
H
'Origin: http://localhost:8080'
\
-
H
'Referer: http://localhost:8080/'
\
-
H
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
\
-
H
'botAccount: 281647119'
\
-
H
'groupId: 49'
\
-
H
'mul: true'
\
-
H
'projectId: 1090'
\
--
compressed
\
--
insecure
```
#### 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
[
{
"id"
:
8108
,
"name"
:
"玩家"
,
"intro"
:
"游戏的主角"
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
"http://tx-gz14.heyqiwu.cn/media/281647119/img/npc/1600328192021GDdxiSU.png"
,
"npcInstanceAttrVos"
:
[
{
"id"
:
35602
,
"name"
:
"所在地点"
,
"value"
:
"8179"
,
"isBase"
:
true
,
"npcClassAttrId"
:
16663
},
{
"id"
:
35603
,
"name"
:
"物品栏"
,
"value"
:
""
,
"isBase"
:
true
,
"npcClassAttrId"
:
16664
},
{
"id"
:
35604
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
16665
}
],
"npcClassId"
:
4712
,
"offline"
:
false
,
"voiceClass"
:
"A21"
,
"voiceName"
:
"新新(男缓慢)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"A21"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
},
{
"id"
:
8109
,
"name"
:
"旁白"
,
"intro"
:
"承担剧情、人物和地点的介绍!"
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
"http://tx-gz14.heyqiwu.cn/media/281647119/img/npc/1600328192024ixoVANW.png"
,
"npcInstanceAttrVos"
:
[
{
"id"
:
35605
,
"name"
:
"所在地点"
,
"value"
:
"8179"
,
"isBase"
:
true
,
"npcClassAttrId"
:
16666
},
{
"id"
:
35606
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
16667
},
{
"id"
:
35607
,
"name"
:
"物品栏"
,
"value"
:
""
,
"isBase"
:
true
,
"npcClassAttrId"
:
16668
}
],
"npcClassId"
:
4713
,
"offline"
:
false
,
"voiceClass"
:
"A21"
,
"voiceName"
:
"新新(男缓慢)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"A21"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
}
]
}
```
### 获取角色类的所有实例
**METHOD**
: GET
**path**
: api/platform/design/npc/instance
**RequestHeaders:**
同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| ---------- | ---- | -------- | ----------- |
| npcClassId | | yes | 角色类ID |
#### body字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求示例
```
js
curl
'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/instance/?npcClassId=49228'
\
-
H
'Accept: application/json, text/plain, */*'
\
-
H
'Accept-Language: zh-CN,zh;q=0.9'
\
-
H
'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM01qTTNPREFzSW1WNGNDSTZNVGN3TURjek1EazRNQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLjZVdU1WZkhfRHQ3ekVlNUkxSGpPYnN6Ym9MRU9LUExvNUl3YzlvQkg0X1U6czAwcGVyczNjcmV0'
\
-
H
'Connection: keep-alive'
\
-
H
'Origin: http://localhost:8080'
\
-
H
'Referer: http://localhost:8080/'
\
-
H
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
\
-
H
'botAccount: txgz14boterewere887181945'
\
-
H
'groupId: 713'
\
-
H
'mul: true'
\
-
H
'projectId: 6410'
\
--
compressed
\
--
insecure
```
#### 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
[
{
"id"
:
170534
,
"name"
:
"旁白"
,
"intro"
:
null
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
""
,
"npcInstanceAttrVos"
:
[
{
"id"
:
519742
,
"name"
:
"所在地点"
,
"value"
:
"47095"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158489
},
{
"id"
:
519743
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158490
}
],
"npcClassId"
:
49228
,
"offline"
:
false
,
"voiceClass"
:
"ProTencent11"
,
"voiceName"
:
"腾智美(客服女声)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"ProTencent11"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
},
{
"id"
:
170535
,
"name"
:
"周逸生"
,
"intro"
:
null
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
""
,
"npcInstanceAttrVos"
:
[
{
"id"
:
519744
,
"name"
:
"所在地点"
,
"value"
:
"47095"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158489
},
{
"id"
:
519745
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158490
}
],
"npcClassId"
:
49228
,
"offline"
:
false
,
"voiceClass"
:
"ProTencent11"
,
"voiceName"
:
"腾智美(客服女声)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"ProTencent11"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
},
{
"id"
:
170536
,
"name"
:
"王珊"
,
"intro"
:
null
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
""
,
"npcInstanceAttrVos"
:
[
{
"id"
:
519746
,
"name"
:
"所在地点"
,
"value"
:
"47095"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158489
},
{
"id"
:
519747
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158490
}
],
"npcClassId"
:
49228
,
"offline"
:
false
,
"voiceClass"
:
"ProTencent11"
,
"voiceName"
:
"腾智美(客服女声)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"ProTencent11"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
},
{
"id"
:
170537
,
"name"
:
"关越闻"
,
"intro"
:
null
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
""
,
"npcInstanceAttrVos"
:
[
{
"id"
:
519748
,
"name"
:
"所在地点"
,
"value"
:
"47095"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158489
},
{
"id"
:
519749
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158490
}
],
"npcClassId"
:
49228
,
"offline"
:
false
,
"voiceClass"
:
"ProTencent11"
,
"voiceName"
:
"腾智美(客服女声)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"ProTencent11"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
},
{
"id"
:
170538
,
"name"
:
"公司老总"
,
"intro"
:
null
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
""
,
"npcInstanceAttrVos"
:
[
{
"id"
:
519750
,
"name"
:
"所在地点"
,
"value"
:
"47095"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158489
},
{
"id"
:
519751
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158490
}
],
"npcClassId"
:
49228
,
"offline"
:
false
,
"voiceClass"
:
"ProTencent11"
,
"voiceName"
:
"腾智美(客服女声)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"ProTencent11"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
},
{
"id"
:
170539
,
"name"
:
"总管"
,
"intro"
:
null
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
""
,
"npcInstanceAttrVos"
:
[
{
"id"
:
519752
,
"name"
:
"所在地点"
,
"value"
:
"47095"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158489
},
{
"id"
:
519753
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158490
}
],
"npcClassId"
:
49228
,
"offline"
:
false
,
"voiceClass"
:
"ProTencent11"
,
"voiceName"
:
"腾智美(客服女声)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"ProTencent11"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
},
{
"id"
:
170540
,
"name"
:
"指令系统"
,
"intro"
:
null
,
"nickname"
:
""
,
"isBase"
:
true
,
"headImgUrl"
:
""
,
"npcInstanceAttrVos"
:
[
{
"id"
:
519754
,
"name"
:
"所在地点"
,
"value"
:
"47095"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158489
},
{
"id"
:
519755
,
"name"
:
"能否说话"
,
"value"
:
"能"
,
"isBase"
:
true
,
"npcClassAttrId"
:
158490
}
],
"npcClassId"
:
49228
,
"offline"
:
false
,
"voiceClass"
:
"ProTencent11"
,
"voiceName"
:
"腾智美(客服女声)"
,
"mood"
:
"正常"
,
"voicePackage"
:
{
"ProTencent11"
:
{
"正常"
:
{
"volume"
:
0
,
"pitch"
:
0
,
"speed"
:
1
}
}
}
}
]
}
```
### 新增角色实例
**METHOD**
: POST
**path**
: api/platform/design/npc/instance
**RequestHeaders:**
同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### body字段说明
| key | type | required | description |
| ------------------ | ---- | -------- | -------------------- |
| isBase | | yes | 是否是基本npc |
| offline | | yes | 是否是离线声音 |
| voiceClass | | yes | tts声音ID |
| headImgUrl | | yes | 头像 |
| name | | yes | npc实例名称 |
| nickname | | no | npc实例的别名 |
| npcClassId | | yes | npc类型ID |
| npcInstanceAttrVos | | yes | 角色属性 |
| mood | | yes | 默认情绪 |
| voicePackage | | yes | npc调节tts声音的记录 |
| voiceName | | yes | tts声音名称 |
npcInstanceAttrVos 值说明
| key | type | description |
| -------------- | ---- | ---------------------- |
| id | | 角色属性id |
| name | | 所在地点/能否说话 名称 |
| value | | 所在地点值/能否说话 |
| isBase | | 是否是基本npc |
| npcClassAttrId | | npc类型属性ID |
voicePackage 值说明
| key | type | description |
| ------------ | ---- | -------------- |
| ProTencent11 | | 说话风格 |
| 正常 | | 情绪 |
| volume | | 是否是离线声音 |
| pitch | | tts声音ID |
| speed | | 头像,暂未使用 |
#### 请求示例
```
js
curl
'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/instance/170534/'
\
-
X
'PUT'
\
-
H
'Accept: application/json, text/plain, */*'
\
-
H
'Accept-Language: zh-CN,zh;q=0.9'
\
-
H
'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM01qTTNPREFzSW1WNGNDSTZNVGN3TURjek1EazRNQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLjZVdU1WZkhfRHQ3ekVlNUkxSGpPYnN6Ym9MRU9LUExvNUl3YzlvQkg0X1U6czAwcGVyczNjcmV0'
\
-
H
'Connection: keep-alive'
\
-
H
'Content-Type: application/json;charset=UTF-8'
\
-
H
'Origin: http://localhost:8080'
\
-
H
'Referer: http://localhost:8080/'
\
-
H
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
\
-
H
'botAccount: txgz14boterewere887181945'
\
-
H
'groupId: 713'
\
-
H
'mul: true'
\
-
H
'projectId: 6410'
\
--
data
-
raw
'{"id":170534,"isBase":true,"offline":false,"voiceClass":"ProTencent11","headImgUrl":"","name":"旁白","nickname":"","intro":null,"npcClassId":49228,"npcInstanceAttrVos":[{"id":519742,"name":"所在地点","value":47095,"isBase":true,"npcClassAttrId":158489},{"id":519743,"name":"能否说话","value":"能","isBase":true,"npcClassAttrId":158490}],"mood":"正常","voicePackage":{"ProTencent11":{"正常":{"volume":0,"pitch":0,"speed":1}}},"voiceName":"腾智美(客服女声)"}'
\
--
compressed
\
--
insecure
```
#### 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
### 更新角色实例
**METHOD**
: PUT
**path**
: api/platform/design/npc/instance/{id}/
**RequestHeaders:**
同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### body字段说明
| key | type | required | description |
| ------------------ | ---- | -------- | -------------------- |
| id | | yes | 主键ID |
| isBase | | yes | 是否是基本npc |
| offline | | yes | 是否是离线声音 |
| voiceClass | | yes | tts声音ID |
| headImgUrl | | no | 头像 |
| name | | yes | npc实例名称 |
| nickname | | no | npc实例的别名 |
| npcClassId | | yes | npc类型ID |
| npcInstanceAttrVos | | yes | 角色属性 |
| mood | | yes | 默认情绪 |
| voicePackage | | yes | npc调节tts声音的记录 |
| voiceName | | yes | tts声音名称 |
npcInstanceAttrVos 值说明
| key | type | description |
| -------------- | ---- | ---------------------- |
| id | | 角色属性id |
| name | | 所在地点/能否说话 名称 |
| value | | 所在地点值/能否说话 |
| isBase | | 是否是基本npc |
| npcClassAttrId | | npc类型属性ID |
voicePackage 值说明
| key | type | description |
| ------------ | ---- | -------------- |
| ProTencent11 | | 说话风格 |
| 正常 | | 情绪 |
| volume | | 是否是离线声音 |
| pitch | | tts声音ID |
| speed | | 头像,暂未使用 |
#### 请求示例
```
js
curl
'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/instance/170534/'
\
-
X
'PUT'
\
-
H
'Accept: application/json, text/plain, */*'
\
-
H
'Accept-Language: zh-CN,zh;q=0.9'
\
-
H
'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM016RTJNemtzSW1WNGNDSTZNVGN3TURjek9EZ3pPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLnFvVEVCU29TbG1jMHBFZ09HcXdDT0wwSFRHWnRqVHl2eUQ5OTVBZWZ3S0U6czAwcGVyczNjcmV0'
\
-
H
'Connection: keep-alive'
\
-
H
'Content-Type: application/json;charset=UTF-8'
\
-
H
'Origin: http://localhost:8080'
\
-
H
'Referer: http://localhost:8080/'
\
-
H
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
\
-
H
'botAccount: txgz14boterewere887181945'
\
-
H
'groupId: 713'
\
-
H
'mul: true'
\
-
H
'projectId: 6410'
\
--
data
-
raw
'{"id":170534,"isBase":true,"offline":false,"voiceClass":"ProTencent11","headImgUrl":"","name":"旁白","nickname":"","intro":null,"npcClassId":49228,"npcInstanceAttrVos":[{"id":519742,"name":"所在地点","value":47095,"isBase":true,"npcClassAttrId":158489},{"id":519743,"name":"能否说话","value":"能","isBase":true,"npcClassAttrId":158490}],"mood":"正常","voicePackage":{"ProTencent11":{"正常":{"volume":0,"pitch":0,"speed":1}}},"voiceName":"腾智美(客服女声)"}'
\
--
compressed
\
--
insecure
```
#### 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
### 删除角色实例
**METHOD**
: DELETE
**path**
: api/platform/design/npc/instance/{npcInstanceId}/
**RequestHeaders:**
同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### body字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求示例
```
js
curl
'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/instance/170542/'
\
-
X
'DELETE'
\
-
H
'Accept: application/json, text/plain, */*'
\
-
H
'Accept-Language: zh-CN,zh;q=0.9'
\
-
H
'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURBM016RTJNemtzSW1WNGNDSTZNVGN3TURjek9EZ3pPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLnFvVEVCU29TbG1jMHBFZ09HcXdDT0wwSFRHWnRqVHl2eUQ5OTVBZWZ3S0U6czAwcGVyczNjcmV0'
\
-
H
'Connection: keep-alive'
\
-
H
'Origin: http://localhost:8080'
\
-
H
'Referer: http://localhost:8080/'
\
-
H
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
\
-
H
'botAccount: txgz14boterewere887181945'
\
-
H
'groupId: 713'
\
-
H
'mul: true'
\
-
H
'projectId: 6410'
\
--
compressed
\
--
insecure
```
#### 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
###
###
###
\ No newline at end of file
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