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
e8fa13fb
Commit
e8fa13fb
authored
Nov 21, 2023
by
songyinting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
ce3e16c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
186 additions
and
0 deletions
+186
-0
生成剧本.md
gameditor/生成剧本.md
+186
-0
No files found.
gameditor/生成剧本.md
0 → 100644
View file @
e8fa13fb
[
TOC
]
[
TOC
]
# 生成剧本
**测试环境URL**
: http://10.0.7.3:18092/api/juben/generate?secret=f1fvo0Yhw199PIHWTmCbbQ
**生产环境URL**
:http://10.0.7.3:18082/api/juben/generate?secret=f1fvo0Yhw199PIHWTmCbbQ
**METHOD**
: POST
RequestHeaders:
| key | description |
| ------------ | ------------------------------ |
| Content-Type | application/json;charset=utf-8 |
## 请求body字段说明
| key | type | required | description |
| --------- | ---------------------- | -------- | -------------- |
| work | WorkAndOther | 是 | 作品信息 |
| number | List
<PlotPointBO>
| 是 | 作品的所有剧情 |
| roles | List
<RoleVo>
| 是 | 角色列表 |
| posTags | List
<WordDefinitionBo>
| 是 | 词性 |
| synthesis | Boolean | 是 | 是否重新生成 |
WorkAndOther值说明
| key | type | description |
| ------------ | ------------ | --------------------- |
| id | Long | 对象数组 |
| name | String | 作品名 |
| count | int | 作品的总数字 |
| ownerId | Long | 用户id |
| gmtCreate | Timestamp | 创建时间 |
| gmtModified | Timestamp | 修改时间 |
| serviceCode | String | 服务器标识 |
| startPlotNum | String | 生成剧情点开始 |
| username | String | 用户名 |
| botAccount | String | bot唯一标示,供集群用 |
| ttsName | String | 拼音纠错 |
| intro | String | 作品简介 |
| preface | String | 创作者说 |
| userNickname | String | 作者名称 |
| suitCrowdsl | List
<String>
| 适合儿童 |
| labels | List
<String>
| 标签 |
| covers | List
<String>
| 封面尺寸 |
number里一个对象的说明
| key | type | description |
| ------------ | --------- | ------------------------------------- |
| id | Long | 剧情点id |
| number | String | 剧情点编号 |
| texts | String | NPC话术(json) |
| branchs | String | 用户回答分支 |
| projectId | Long | 作品id |
| ownerId | Long | 用户id |
| wordCount | Integer | 剧情点字数 |
| branchCount | Integer | 分支数 |
| merges | Integer | 是否合并剧情(1:合并剧情/0:未合并) |
| complete | Integer | 剧情点是否完善(1:以完善/0:未完善) |
| commentId | Long | 剧情点关联评论的id |
| commentCount | Integer | 剧情点评论的数量 |
| Timestamp | gmtCreate | 创建的时间 |
| plotSort | Long | 根据剧情收个数组排序 |
roles里一个对象的说明
| key | type | description |
| ------------ | ------------------ | -------------------- |
| id | Long | 角色id |
| workId | Long | 作品id |
| roleName | String | 角色名称 |
| voiceName | String | 说话风格,播报的风格 |
| voiceClass | String | 说话风格,对应的英文 |
| mood | String | 默认情绪 |
| voicePackage | Map
<String
,
Object
>
| 情绪所有数据 |
posTags里一个对象的说明
| key | type | description |
| --------- | ------ | ----------- |
| pos | String | 词性 |
| words | String | 词性内容 |
| projectId | Long | 作品id |
## 请求示例
```
json
{
"pointBOList"
:
[
{
"branchCount"
:
0
,
"branchs"
:
"[]"
,
"commentCount"
:
0
,
"commentId"
:
0
,
"complete"
:
0
,
"gmtCreate"
:
1698729756000
,
"id"
:
529145
,
"merges"
:
0
,
"number"
:
"监听"
,
"ownerId"
:
60
,
"projectId"
:
1024
,
"texts"
:
"[]"
,
"wordCount"
:
0
},
{
"branchCount"
:
5
,
"branchs"
:
"[{
\"
name
\"
:
\"
询问意见
\"
,
\"
nextPlotNum
\"
:
\"
1-1-1
\"
,
\"
userSpeech
\"
:
\"
你觉得我适合做咖啡馆的吗?+你觉得我应该怎么办?
\"
},{
\"
name
\"
:
\"
问原因
\"
,
\"
nextPlotNum
\"
:
\"
1-1-2
\"
,
\"
userSpeech
\"
:
\"
你为什么会突然想打电话给我?
\"
},{
\"
name
\"
:
\"
问方法
\"
,
\"
nextPlotNum
\"
:
\"
1-1-3
\"
,
\"
userSpeech
\"
:
\"
你有什么经营咖啡馆的建议吗?
\"
},{
\"
name
\"
:
\"
不知道
\"
,
\"
nextPlotNum
\"
:
\"
1-1-4
\"
,
\"
userSpeech
\"
:
\"
我也不确定该怎么做。
\"
},{
\"
intents
\"
:[],
\"
name
\"
:
\"
分支5
\"
,
\"
nextPlotNum
\"
:
\"
1-2
\"
,
\"
userSpeech
\"
:
\"
兜底跳转
\"
}]"
,
"commentCount"
:
0
,
"commentId"
:
529146
,
"complete"
:
1
,
"gmtCreate"
:
1698729766000
,
"id"
:
529146
,
"merges"
:
0
,
"number"
:
"1-1"
,
"ownerId"
:
60
,
"plotSort"
:
1
,
"projectId"
:
1024
,
"texts"
:
"[{
\"
content
\"
:
\"
咖啡馆内,午后的阳光透过窗户洒落进来,给整个空间增添了一丝暖意。吧台上摆着几杯刚做好的咖啡,香气四溢。
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
旁白
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
雅音,好久不见,没想到你还记得我。
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
翁可馨
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
萧雅音拿起咖啡杯,轻啜了一口,感受着舌尖上的醇香。
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
旁白
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
这几年,你过得怎么样?
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
翁可馨
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
萧雅音放下咖啡杯,目光投向了窗外,思绪飘向了远方的回忆。
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
旁白
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
最近,我一直在听高中同学说,你工作很出色。可是,我听说最近公司出了一些问题?
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
翁可馨
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
萧雅音轻叹一声,将事情的原委告诉了翁可馨。
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
旁白
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
唉,职场上总会遇到这样的事情。不过,我相信你的能力,一定可以找到更好的工作。
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
翁可馨
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
萧雅音微微一笑,心中涌起一阵暖意。
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
旁白
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
对了,这家咖啡馆是你的吗?
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
翁可馨
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0},{
\"
content
\"
:
\"
萧雅音点点头,是啊,我被辞
\"
,
\"
emotion
\"
:
\"
正常
\"
,
\"
intonation
\"
:0.0,
\"
npcName
\"
:
\"
旁白
\"
,
\"
speech
\"
:1.0,
\"
volume
\"
:0.0}]"
,
"wordCount"
:
364
}
],
"posTags"
:
[],
"synthesis"
:
false
,
"work"
:
{
"botAccount"
:
"juben1b01024"
,
"count"
:
1701
,
"covers"
:
[
{
"detailUrl"
:
"http://tx-gz18.heyqiwu.cn/media/img/default.png"
,
"listUrl"
:
"http://tx-gz18.heyqiwu.cn/media/img/default.png"
,
"scale"
:
"4x3"
},
{
"detailUrl"
:
"http://tx-gz18.heyqiwu.cn/media/img/default.png"
,
"listUrl"
:
"http://tx-gz18.heyqiwu.cn/media/img/default.png"
,
"scale"
:
"1x1"
}
],
"gmtCreate"
:
1698729756000
,
"gmtModified"
:
1698729756000
,
"id"
:
1024
,
"labels"
:
[],
"name"
:
"第5个作品"
,
"ownerId"
:
60
,
"serviceCode"
:
"juben1"
,
"startPlotNum"
:
"1-1"
,
"suitCrowdsl"
:
[],
"username"
:
"syt"
}
}
```
## 响应字段说明
| key | type | description |
| ---- | ---------- | ----------- |
| code | int | 状态码 |
| msg | string | 状态信息 |
| data | JSONObject | 响应数据 |
## 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:{
}
}
```
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