| | |
| | | |
| | | <!-- 画中画 --> |
| | | <Vue3DraggableResizable |
| | | :key="selectPPT.digitalHuman.x + '-' + selectPPT.digitalHuman.y" |
| | | v-if="selectPPT.innerPicture && selectPPT.innerPicture.src" |
| | | :parent="true" |
| | | :initW="selectPPT.innerPicture.width" |
| | |
| | | <el-text class="mx-1" type="primary" size="small">{{ |
| | | t('courseCenter.oralBroadcastingContent') |
| | | }}</el-text> |
| | | <div class="media-box"> |
| | | <!-- 原本的声音选择器 --> |
| | | <!-- <div class="media-box"> |
| | | <el-button type="primary" :icon="Mic" size="small" @click="openSelect">{{ |
| | | selectPPT.selectAudio ? selectPPT.selectAudio.name : t('courseCenter.notSelect') |
| | | }}</el-button> |
| | |
| | | size="small" |
| | | @click="voiceData.show = !voiceData.show" |
| | | /> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | <div v-if="selectPPT.driverType == 1" style="position: relative"> |
| | | <div class="middle-textarea"> |
| | |
| | | } |
| | | const hostValue = ref({}) |
| | | const chooseHost = (item) => { |
| | | dialogVisible2.value = true |
| | | // 数字人默认所有页,没有当前页选项 |
| | | hostValue.value = item |
| | | chooseHost1(2) |
| | | // dialogVisible2.value = true |
| | | |
| | | } |
| | | const chooseHost1 = (index) => { |
| | | if (index == 1) { |
| | |
| | | getList1() |
| | | } else if (item.name == t('courseCenter.sound')) { |
| | | // 声音的处理 selectAudio |
| | | |
| | | |
| | | if (selectLanguage.value === undefined) { |
| | | // 获取语言种类 |
| | | getLanguageList() |
| | |
| | | } |
| | | |
| | | const chooseTemplate = (currTemplate) => { |
| | | console.log(currTemplate) |
| | | console.log( "currTemplate", currTemplate) |
| | | selectTemplate.value = cloneDeep(currTemplate) |
| | | templates.value.forEach((item) => { |
| | | item.isActive = false |
| | |
| | | // initHumanPositon(item, selectPPT.value.digitalHuman) |
| | | // } |
| | | // } |
| | | |
| | | // 初始化数字人位置 |
| | | const initHumanPositon = (hostData, digitalHuman) => { |
| | | if (hostData.posture === 1) { |
| | | digitalHuman.x = viewSize.width - digitalHuman.w |
| | |
| | | tonePitch: '', |
| | | voiceType: item.selectAudio && item.selectAudio.voiceType, |
| | | speechRate: '', |
| | | name: item.selectAudio && item.selectAudio.name |
| | | name: item.selectAudio && item.selectAudio.name, |
| | | language: selectLanguage.value?.value |
| | | }, |
| | | businessId: item.businessId |
| | | } |
| | |
| | | const params = { |
| | | text: truncatedText, |
| | | humanId: selectPPT.value.digitalHuman?.host?.id || null, |
| | | // voiceId: audioSelectData.value == undefined ? null : audioSelectData.value[0].id, |
| | | voiceId: 'zh-CN' |
| | | voiceId: audioSelectData.value == undefined ? null : audioSelectData.value[0].id, |
| | | language: selectLanguage.value?.value |
| | | } |
| | | |
| | | try { |
| | |
| | | } |
| | | |
| | | const goBack = () => { |
| | | if (!PPTArr.value) { |
| | | if (PPTArr.value.length==0) { |
| | | pptTemplateApi.coursesDelete(courseInfo.value.id).then((res) => { |
| | | console.log(res) |
| | | router.go(-1) |
| | | }) |
| | | }else { |
| | | router.go(-1) |
| | | } |
| | | router.go(-1) |
| | | |
| | | } |
| | | |
| | | const editorRef = shallowRef() |