Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SmartBox
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
苗权威
SmartBox
Commits
41eb7a56
Commit
41eb7a56
authored
Jan 12, 2021
by
苗权威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zhushi
parent
c54f6196
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
20 deletions
+24
-20
TTSController.java
...ava/ai/qiwu/com/tts_service/controller/TTSController.java
+0
-0
Dialog.java
...ce/src/main/java/ai/qiwu/com/tts_service/pojo/Dialog.java
+1
-0
TTSLSRequest.java
.../main/java/ai/qiwu/com/tts_service/pojo/TTSLSRequest.java
+6
-6
TTSRequest.java
...rc/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java
+11
-8
TextInfo.java
.../src/main/java/ai/qiwu/com/tts_service/pojo/TextInfo.java
+6
-6
TTServiceEdition2.java
...va/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
+0
-0
No files found.
tts_service/src/main/java/ai/qiwu/com/tts_service/controller/TTSController.java
View file @
41eb7a56
This diff is collapsed.
Click to expand it.
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/Dialog.java
View file @
41eb7a56
...
...
@@ -14,6 +14,7 @@ import java.io.File;
@Getter
@Setter
public
class
Dialog
{
// 作品 角色名 语音人物名 文本 情绪
private
String
botAccount
;
private
String
npcName
;
private
String
person
;
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSLSRequest.java
View file @
41eb7a56
...
...
@@ -16,10 +16,10 @@ import java.util.List;
@ToString
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
TTSLSRequest
{
private
String
_type
;
private
String
platform
;
private
List
<
TextInfo
>
text_info_ls
;
private
String
botname
;
private
String
person
;
private
Integer
gen3rd
;
private
String
_type
;
// 等与 filename 时代表只是获取音频的文件名
private
String
platform
;
// 等与 xiaoai 时代表要将请求的多条文本的音频合并为一个文件,放到 xx/botAccount/xiaoai/ 目录下
private
List
<
TextInfo
>
text_info_ls
;
// 请求的多个文本数据
private
String
botname
;
// 作品id
private
String
person
;
// 语音角色名
private
Integer
gen3rd
;
// // 第三方语音是否生成,为0则代表不处理该第三方语音
}
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TTSRequest.java
View file @
41eb7a56
...
...
@@ -14,14 +14,17 @@ import lombok.*;
@NoArgsConstructor
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
TTSRequest
{
private
String
person
;
private
String
text
;
private
String
_type
;
private
String
pitch
;
private
String
tone
;
private
String
botname
;
private
String
person
;
// 语音角色
private
String
text
;
// 文本
private
String
_type
;
// 为json时代表请求要获取的是音频访问链接
private
String
tone
;
// 情绪
private
String
botname
;
// 作品id
// 是否要获取线上地址,每个线下角色语音都有一个对应的线上角色,
// 在该请求获取不到时会跳转到其线上角色,这个参数控制是否跳转,false代表不
private
Boolean
get_online
;
private
String
npcName
;
// 角色名,指的是与作品相关的角色名称,用于寻找人工语音
private
String
volume
;
private
String
speed
;
private
Boolean
get_online
;
private
String
npcName
;
private
String
pitch
;
}
tts_service/src/main/java/ai/qiwu/com/tts_service/pojo/TextInfo.java
View file @
41eb7a56
...
...
@@ -18,12 +18,12 @@ import java.net.URLEncoder;
@Setter
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
TextInfo
{
private
String
person
;
private
String
text
;
private
String
tone
;
private
String
volume
;
private
String
pitch
;
private
String
speed
;
private
String
person
;
//语音角色
private
String
text
;
// 文本
private
String
tone
;
// 情绪
private
String
volume
;
// 音量
private
String
pitch
;
// 语调
private
String
speed
;
// 语速
private
Boolean
cache
;
private
String
server
;
private
String
botname
;
...
...
tts_service/src/main/java/ai/qiwu/com/tts_service/service/TTServiceEdition2.java
View file @
41eb7a56
This diff is collapsed.
Click to expand it.
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