Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
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
徐少华
midjourney-proxy
Commits
e63f9958
Commit
e63f9958
authored
Dec 13, 2018
by
songxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
亲子伴读魔法书
parent
17582665
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
380 additions
and
9 deletions
+380
-9
ConvertEnum.java
...ain/java/com/pcloud/common/core/constant/ConvertEnum.java
+14
-9
AudioDTO.java
...ain/java/com/pcloud/common/core/dto/dubbing/AudioDTO.java
+105
-0
DubbingDTO.java
...n/java/com/pcloud/common/core/dto/dubbing/DubbingDTO.java
+116
-0
DubbingResultDTO.java
.../com/pcloud/common/core/dto/dubbing/DubbingResultDTO.java
+91
-0
SpeechDTO.java
...in/java/com/pcloud/common/core/dto/dubbing/SpeechDTO.java
+54
-0
No files found.
pcloud-common-core/src/main/java/com/pcloud/common/core/constant/ConvertEnum.java
View file @
e63f9958
...
...
@@ -85,15 +85,20 @@ public enum ConvertEnum {
*/
AUDIO_LESSON
(
"AUDIO_LESSON"
),
/**
* 音频纯听
*/
AUDIO_LISTEN
(
"AUDIO_LISTEN"
);
/**
* 值
*/
public
final
String
value
;
/**
* 音频纯听
*/
AUDIO_LISTEN
(
"AUDIO_LISTEN"
),
/**
* 音频魔法箱
*/
AUDIO_MAGIC
(
"AUDIO_MAGIC"
);
/**
* 值
*/
public
final
String
value
;
/**
* 构造
...
...
pcloud-common-core/src/main/java/com/pcloud/common/core/dto/dubbing/AudioDTO.java
0 → 100644
View file @
e63f9958
/**
*
*/
package
com
.
pcloud
.
common
.
core
.
dto
.
dubbing
;
import
java.io.Serializable
;
import
com.alibaba.fastjson.JSONObject
;
/**
*
* @author:songx
* @date:2018年12月5日,下午5:07:40
*/
public
class
AudioDTO
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1217229671463911762L
;
/**
* 文件名称
*/
private
String
fileName
;
/**
* 时长
*/
private
int
duration
;
/**
* 文件地址
*/
private
String
fileUrl
;
/**
* 文件大小
*/
private
long
fileSize
;
/**
* 语音文件插入时间点
*/
private
int
start
;
/**
* id
*/
private
int
id
;
public
long
getFileSize
()
{
return
fileSize
;
}
public
void
setFileSize
(
long
fileSize
)
{
this
.
fileSize
=
fileSize
;
}
public
int
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
public
String
getFileName
()
{
return
fileName
;
}
public
void
setFileName
(
String
fileName
)
{
this
.
fileName
=
fileName
;
}
public
int
getDuration
()
{
return
duration
;
}
public
void
setDuration
(
int
duration
)
{
this
.
duration
=
duration
;
}
public
String
getFileUrl
()
{
return
fileUrl
;
}
public
void
setFileUrl
(
String
fileUrl
)
{
this
.
fileUrl
=
fileUrl
;
}
public
int
getStart
()
{
return
start
;
}
public
void
setStart
(
int
start
)
{
this
.
start
=
start
;
}
@Override
public
String
toString
()
{
return
"DubbingResultDTO : "
+
JSONObject
.
toJSONString
(
this
);
}
}
pcloud-common-core/src/main/java/com/pcloud/common/core/dto/dubbing/DubbingDTO.java
0 → 100644
View file @
e63f9958
package
com
.
pcloud
.
common
.
core
.
dto
.
dubbing
;
import
java.io.Serializable
;
import
java.util.List
;
import
com.alibaba.fastjson.JSONObject
;
/**
* 绘本配音资源DTO
*
* @author:songx
* @date:2018年12月5日,上午10:07:26
*/
public
class
DubbingDTO
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
5639047705106025465L
;
/**
* 用户添加的问题文本(不超过5条)
*/
private
List
<
SpeechDTO
>
speechDTOs
;
/**
* 待合成的背景音乐URL(不超过4条)
*/
private
String
[]
bgms
;
/**
* 导语
*/
private
String
beforeText
;
/**
* 结束语
*/
private
String
afterText
;
/**
* 应用ID
*/
private
Long
appId
;
/**
* 编辑ID
*/
private
Long
adviserId
;
/**
* 音乐ID
*/
private
Long
musicId
;
public
String
getBeforeText
()
{
return
beforeText
;
}
public
void
setBeforeText
(
String
beforeText
)
{
this
.
beforeText
=
beforeText
;
}
public
String
getAfterText
()
{
return
afterText
;
}
public
void
setAfterText
(
String
afterText
)
{
this
.
afterText
=
afterText
;
}
public
Long
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
Long
appId
)
{
this
.
appId
=
appId
;
}
public
Long
getAdviserId
()
{
return
adviserId
;
}
public
void
setAdviserId
(
Long
adviserId
)
{
this
.
adviserId
=
adviserId
;
}
public
Long
getMusicId
()
{
return
musicId
;
}
public
void
setMusicId
(
Long
musicId
)
{
this
.
musicId
=
musicId
;
}
public
List
<
SpeechDTO
>
getSpeechDTOs
()
{
return
speechDTOs
;
}
public
void
setSpeechDTOs
(
List
<
SpeechDTO
>
speechDTOs
)
{
this
.
speechDTOs
=
speechDTOs
;
}
public
String
[]
getBgms
()
{
return
bgms
;
}
public
void
setBgms
(
String
[]
bgms
)
{
this
.
bgms
=
bgms
;
}
@Override
public
String
toString
()
{
return
"DubbingDTO : "
+
JSONObject
.
toJSONString
(
this
);
}
}
pcloud-common-core/src/main/java/com/pcloud/common/core/dto/dubbing/DubbingResultDTO.java
0 → 100644
View file @
e63f9958
package
com
.
pcloud
.
common
.
core
.
dto
.
dubbing
;
import
com.alibaba.fastjson.JSONObject
;
import
com.pcloud.common.core.dto.dubbing.AudioDTO
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* 绘本配音资源DTO
*
* @author:songx
* @date:2018年12月5日,上午10:07:26
*/
public
class
DubbingResultDTO
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
2458000180158610651L
;
/**
* 语音文件
*/
private
List
<
AudioDTO
>
speechs
;
/**
* 混合音频
*/
private
AudioDTO
mixAudio
;
/**
* 应用ID
*/
private
Long
appId
;
/**
* 编辑ID
*/
private
Long
adviserId
;
/**
* 音乐ID
*/
private
Long
musicId
;
public
Long
getAppId
()
{
return
appId
;
}
public
void
setAppId
(
Long
appId
)
{
this
.
appId
=
appId
;
}
public
Long
getAdviserId
()
{
return
adviserId
;
}
public
void
setAdviserId
(
Long
adviserId
)
{
this
.
adviserId
=
adviserId
;
}
public
Long
getMusicId
()
{
return
musicId
;
}
public
void
setMusicId
(
Long
musicId
)
{
this
.
musicId
=
musicId
;
}
public
List
<
AudioDTO
>
getSpeechs
()
{
return
speechs
;
}
public
void
setSpeechs
(
List
<
AudioDTO
>
speechs
)
{
this
.
speechs
=
speechs
;
}
public
AudioDTO
getMixAudio
()
{
return
mixAudio
;
}
public
void
setMixAudio
(
AudioDTO
mixAudio
)
{
this
.
mixAudio
=
mixAudio
;
}
@Override
public
String
toString
()
{
return
"DubbingResultDTO : "
+
JSONObject
.
toJSONString
(
this
);
}
}
pcloud-common-core/src/main/java/com/pcloud/common/core/dto/dubbing/SpeechDTO.java
0 → 100644
View file @
e63f9958
/**
*
*/
package
com
.
pcloud
.
common
.
core
.
dto
.
dubbing
;
import
java.io.Serializable
;
import
com.alibaba.fastjson.JSONObject
;
/**
*
* @author:songx
* @date:2018年12月5日,下午5:05:57
*/
public
class
SpeechDTO
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
5054460976926789378L
;
/**
* 文本内容
*/
private
String
text
;
/**
* id
*/
private
int
id
;
public
String
getText
()
{
return
text
;
}
public
void
setText
(
String
text
)
{
this
.
text
=
text
;
}
public
int
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
@Override
public
String
toString
()
{
return
"SpeechDTO : "
+
JSONObject
.
toJSONString
(
this
);
}
}
\ 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