Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
Project
Project
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
周成波
text2video-frontend
Commits
5815b982
Commit
5815b982
authored
Oct 24, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加花字参数,先写死
parent
7bdfd5aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
gen_digit_human_video.vue
src/views/home/gen_digit_human_video.vue
+18
-13
No files found.
src/views/home/gen_digit_human_video.vue
View file @
5815b982
...
...
@@ -31,11 +31,8 @@ const form = reactive({
task_id
:
''
,
lang
:
'<|zh|>'
,
text
:
`大家好,欢迎来到恐龙爱迪游乐园上海江苏路店,这里是孩子们欢乐的天堂,也是家庭共度美好时光的最佳选择。今天我要特别推荐给大家的是我们这里超受欢迎的项目——海洋球池!
想象一下,踏入一个色彩斑斓的世界,成千上万颗柔软的海洋球在脚下翻滚,就像是走进了一个巨大的彩虹梦。这里不仅是孩子们的最爱,连大人们也会忍不住加入,一起找回童年的快乐。而且,现在我们有一个特别优惠:只需198元,您就可以享受10次畅玩的机会,绝对物超所值!
安全是我们最重视的方面。我们的海洋球池采用了高品质材料制作的球体,确保每一个球都足够柔软,即使摔倒也不会感到疼痛。此外,专业的安全人员时刻在场,确保每一位游客的安全。
无论是周末的家庭出游,还是朋友间的聚会,海洋球池都是不可错过的选择。快来恐龙爱迪游乐园,让我们一起创造更多美好的回忆吧!`
,
sample_audio_path
:
''
,
sample_video_path
:
''
,
...
...
@@ -45,7 +42,13 @@ const form = reactive({
bgm
:
''
,
final_video
:
''
,
sample_video_crop_area
:
[],
show_image_or_video_crop_area
:
[]
show_image_or_video_crop_area
:
[],
subtitle_type
:
"color"
,
subtitle_style
:
{
EffectColorStyle
:
'CS0003-000023'
,
FontSize
:
50
,
Position
:
0.8
}
})
onMounted
(()
=>
{
...
...
@@ -216,7 +219,9 @@ const onGenVideo = async () => {
sample_audio_path
:
form
.
sample_audio_path
,
sample_video_path
:
form
.
sample_video_path
,
show_image_or_video_path
:
form
.
show_image_or_video_path
,
bgm
:
''
bgm
:
''
,
subtitle_type
:
form
.
subtitle_type
,
subtitle_style
:
JSON
.
stringify
(
form
.
subtitle_style
),
}
if
(
form
.
sample_video_crop_area
.
length
>
0
)
{
video_param
.
sample_video_crop_area
=
JSON
.
stringify
(
form
.
sample_video_crop_area
)
...
...
@@ -290,7 +295,7 @@ const handleCrop = (val: any) => {
<el-form-item
label=
"文案"
>
<el-input
v-model=
"form.text"
:autosize=
"
{ minRows: 2, maxRows:
4
}"
:autosize=
"
{ minRows: 2, maxRows:
5
}"
type="textarea"
placeholder="Please input"
/>
...
...
@@ -310,13 +315,13 @@ const handleCrop = (val: any) => {
:on-remove=
"handleUploadSampleVideoRemove"
>
<el-button
type=
"primary"
size=
"small"
>
上传
</el-button>
<el-button
type=
"
primary
"
size=
"small"
@
click
.
stop=
"showCropVideoDialog('sample_video')"
>
裁剪
<el-button
type=
"
danger
"
size=
"small"
@
click
.
stop=
"showCropVideoDialog('sample_video')"
>
裁剪
视频画面
</el-button>
<template
#
tip
>
<div
class=
"el-upload__tip"
style=
"color: #0000ff; background-color: #e6f7ff"
>
请录制一段出镜人的视频,说话时的嘴型能够清晰分辨,20秒左右即可。上传的文件格式为
mp4,不大于 50M
。
mp4,不大于 50M
</div>
</
template
>
</el-upload>
...
...
@@ -340,7 +345,7 @@ const handleCrop = (val: any) => {
<
template
#
tip
>
<div
class=
"el-upload__tip"
style=
"color: #0000ff; background-color: #e6f7ff"
>
这里可以上传一段说话的声音,比如朗读一段文字,20秒左右即可。文件格式为 wav,不大于
50M。也可以不上传,不传则默认用出镜人的声音
。
50M。也可以不上传,不传则默认用出镜人的声音
</div>
</
template
>
</el-upload>
...
...
@@ -362,16 +367,16 @@ const handleCrop = (val: any) => {
>
<el-button
type=
"primary"
size=
"small"
>
上传
</el-button>
<el-button
type=
"
primary
"
type=
"
danger
"
size=
"small"
@
click
.
stop=
"showCropVideoDialog('show_image_or_video')"
>
裁剪
裁剪视频画面
</el-button>
<
template
#
tip
>
<div
class=
"el-upload__tip"
style=
"color: #0000ff; background-color: #e6f7ff"
>
这里可以上传一段视频(mp4)或一张图片(jpg, png),
作为最终视频的上半部分,也可以不上传,不传则只生成数字人视频
。
作为最终视频的上半部分,也可以不上传,不传则只生成数字人视频
</div>
</
template
>
</el-upload>
...
...
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