Commit f406e1cd by jixudong

Replace 项目列表-角色.md

parent 071adafc
**测试环境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 ...@@ -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 **METHOD**: GET
...@@ -1443,3 +1336,74 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/npc/instance/unknown_text/1/ ...@@ -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
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