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
f406e1cd
Commit
f406e1cd
authored
Nov 30, 2023
by
jixudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 项目列表-角色.md
parent
071adafc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
108 deletions
+73
-108
项目列表-角色.md
gameditor/前端接口/项目列表-角色.md
+73
-108
No files found.
gameditor/前端接口/项目列表-角色.md
View file @
f406e1cd
**测试环
境URL**
:http://tx-gz14.heyqiwu.cn
**测试环
境URL**
:http://tx-gz14.heyqiwu.cn
...
...
@@ -336,113 +336,6 @@ 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
...
...
@@ -1443,3 +1336,74 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/instance/unknown_text/1/
}
```
### 获取所有离线的角色实例
**METHOD**
: GET
**path**
: api/platform/design/npc/instance/offline
**RequestHeaders:**
同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| --------- | ---- | -------- | ----------- |
| projectId | | yes | 项目id |
#### 请求body字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求示例
```
js
curl
'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/instance/offline?projectId=6381'
\
-
H
'Accept: application/json, text/plain, */*'
\
-
H
'Accept-Language: zh-CN,zh;q=0.9'
\
-
H
'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFek1qa3dNREVzSW1WNGNDSTZNVGN3TVRNek5qSXdNU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLnNvVXBEOUZwdlNZSTdSNlU2ZGZGTDczTkZuSHYwcS1nb2ZGNEJPS3pkSHc6czAwcGVyczNjcmV0'
\
-
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: txgz14botwww853177949'
\
-
H
'groupId: 713'
\
-
H
'mul: true'
\
-
H
'projectId: 6381'
\
--
compressed
\
--
insecure
```
#### 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
[
{
"id"
:
170580
,
"name"
:
"闪妹"
,
"moods"
:
[
"正常"
],
"moodsAll"
:
[
"正常"
]
},
{
"id"
:
170581
,
"name"
:
"隐藏角色"
,
"moods"
:
[
"正常"
],
"moodsAll"
:
[
"正常"
]
}
]
}
```
###
\ 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