Commit 5815b982 authored by Administrator's avatar Administrator

增加花字参数,先写死

parent 7bdfd5aa
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment