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
af2acd0d
Commit
af2acd0d
authored
Dec 15, 2023
by
jixudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 项目列表-剧情-剧情详情.md
parent
6940da93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
1 deletion
+64
-1
项目列表-剧情-剧情详情.md
gameditor/前端接口/项目列表-剧情-剧情详情.md
+64
-1
No files found.
gameditor/前端接口/项目列表-剧情-剧情详情.md
View file @
af2acd0d
**测试环
境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
...
...
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