Commit af2acd0d by jixudong

Replace 项目列表-剧情-剧情详情.md

parent 6940da93
**测试环境URL**:http://tx-gz14.heyqiwu.cn
**测试环境URL**:http://tx-gz14.heyqiwu.cn
......@@ -1199,6 +1199,69 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/audio?npcId=31344&
}
```
### 点击试听修改文本音频相关数据
**METHOD**: PUT
**path**: api/platform/design/plot/text/audio
**RequestHeaders:** 同创作平台请求header
#### 请求param字段说明
| key | type | required | description |
| ---- | ---- | -------- | ----------- |
| 无 | | | |
#### 请求body字段说明
| key | type | required | description |
| --------- | ------ | -------- | ----------- |
| projectId | string | yes | 项目id |
| npcId | number | yes | 角色id |
| pitch | number | yes | 音调 |
| speed | number | yes | 语速 |
| text | string | yes | 试音文本 |
| textId | number | yes | 试音文本id |
| tone | string | yes | 语气 |
| volume | number | yes | 声音大小 |
#### 请求示例
```js
curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/plot/text/audio' \
-X 'PUT' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: zh-CN,zh;q=0.9' \
-H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJMk1UZzFORE1zSW1WNGNDSTZNVGN3TWpZeU5UYzBNeXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLmU0TV9nZlN6dnF0aWhXYVN1QXEwcGhIVUtpTVNFUlJyZEFsNFpEYUh3S1U6czAwcGVyczNjcmV0' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Cookie: username=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; nickname=%E5%8B%BF%E5%BF%98%E7%81%AC%E6%97%A0%E6%9C%9F; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDI2MTg1NDMsImV4cCI6MTcwMjYyNTc0MywiYXV0aG9yaXR5IjoxLCJpZCI6MjI0fQ.e4M_gfSzvqtihWaSuAq0phHUKiMSERRrdAl4ZDaHwKU' \
-H 'Origin: http://tx-gz14.heyqiwu.cn' \
-H 'Referer: http://tx-gz14.heyqiwu.cn/Editor/' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \
-H 'botAccount: 6080626246' \
-H 'groupId: 76' \
-H 'mul: true' \
-H 'projectId: 1' \
--data-raw '{"projectId":"1","text":"阿达阿达是的","textId":11186326,"npcId":145385,"tone":"正常","pitch":0,"speed":1,"volume":0}' \
--compressed \
--insecure
```
#### 响应实例
```json
{
"code": 1,
"msg": null,
"data": {
"isInsert": false,
"audioUrl": "http://tx-gz14.heyqiwu.cn/api/platform/tts//api/audio/tts?filename=%2F6080626246%2FProTencent11%2F%E6%AD%A3%E5%B8%B8%2F9be5bc411ef47fbfd9c0163acf6088d2.mp3&exist=1"
}
}
```
### 上传背景音乐
**METHOD**: POST
......
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