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
songyinting
jiaoyou_doc
Commits
8538fcd4
Commit
8538fcd4
authored
Aug 05, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tts添加上传npc声音定时访问接口
parent
2da78204
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
0 deletions
+86
-0
上传单个NPC声音.md
tts/上传单个NPC声音.md
+86
-0
No files found.
tts/上传单个NPC声音.md
0 → 100644
View file @
8538fcd4
-
基本地址
-
基本地址
-
测试环境: https://hw-gz25.heyqiwu.cn/api/platform/tts
#### 上传npc的声音
URL: {基本地址}/api/upload/record/one_npc/v2
METHOD: POST
Headers:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
| Authorization | token |
| groupId | 组ID |
| mul | true |
| projectId | 项目ID |
RequestForm:
| key | value |
| :----------- | :------------: |
| botAccount | BOT帐号 |
| npcName | NPC名称 |
| sampleRate | 采样率 |
| bitRate | 比特率 |
| file | 文件 |
ResponseBody:
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
Example:
```
curl --location --request POST 'https://hw-gz25.heyqiwu.cn/api/platform/tts/api/upload/record/one_npc/v2' \
--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTWpnd056a3pOekVzSW1WNGNDSTZNVFl5T0RBNE5qVTNNU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpkOS5rZ3ZkN0JRLUY4ak5DdHlJOGdLOHp0RnRSZUFhbjhzOHJHNW0zUGNsaFhzOnMwMHBlcnMzY3JldA==' \
--header 'botAccount: 6080626246' \
--header 'groupId: 49' \
--header 'mul: true' \
--header 'projectId: 1' \
--form 'botAccount="6080626246"' \
--form 'npcName="文彬"' \
--form 'sampleRate="44100"' \
--form 'bitRate="64k"' \
--form 'file=@"/home/feng/Desktop/wechatroot/tmp/文彬.zip"'
```
#### 查看上传npc的声音进度
URL: {基本地址}/api/upload/record/progress?botAccount={BOT帐号}
METHOD: GET
Headers:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
ResponseBody:
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
{
"status"
:
1
,
//
是否完成,
1
表示完成,
0
表示未完成
"progress"
:
100
//
进度
}
}
```
Example:
```
curl --location --request GET 'https://hw-gz25.heyqiwu.cn/api/platform/tts/api/upload/record/progress?botAccount=6080626246' \
--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTWpnd056a3pOekVzSW1WNGNDSTZNVFl5T0RBNE5qVTNNU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpkOS5rZ3ZkN0JRLUY4ak5DdHlJOGdLOHp0RnRSZUFhbjhzOHJHNW0zUGNsaFhzOnMwMHBlcnMzY3JldA==' \
--header 'botAccount: 6080626246' \
--header 'groupId: 49' \
--header 'mul: true' \
--header 'projectId: 1'
```
\ 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