已修改3个文件
35 ■■■■■ 文件已修改
easegen-front/src/utils/dict.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/views/chooseTemplate/audioSelect.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/views/chooseTemplate/index.vue 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/utils/dict.ts
@@ -253,6 +253,7 @@
  DIGITALCOURSE_DIGITALHUMAN_TYPE = 'digitalcourse_digitalhuman_type', // 数字人类型
  DIGITALCOURSE_BACKGROUNDS_TYPE = 'digitalcourse_backgrounds_type', // 数字人类型
  DIGITALCOURSE_VOICES_LANGUAGE = 'digitalcourse_voices_language', // 声音语言类型
  CHANGE_SOUND_TYPE_LIST = "change_sound_type_list", //判断用声音类型列表
  DIGITALCOURSE_VOICES_TYPE = 'digitalcourse_voices_type', // 声音类型
  DIGITALCOURSE_VOICES_CLONE_TYPE = 'digitalcourse_voices_clone_type', // 声音克隆类型
  DIGITALCOURSE_GENQUESTION_QUESTION_TYPE = 'digitalcourse_genquestion_question_type',
easegen-front/src/views/chooseTemplate/audioSelect.vue
@@ -147,6 +147,7 @@
}
//语言过滤
const handleLanguage = (item) => {
  console.log(item)
  selectLanguage.value = item;
  languageList.value.forEach((child) => {
    if (child.label == item.label) {
@@ -289,7 +290,6 @@
<style scoped lang="scss">
.language {
  height: 40px;
  line-height: 40px;
  span {
    margin-right: 30px;
easegen-front/src/views/chooseTemplate/index.vue
@@ -196,6 +196,7 @@
              <!-- 画中画 -->
              <Vue3DraggableResizable
                :key="selectPPT.digitalHuman.x + '-' + selectPPT.digitalHuman.y"
                v-if="selectPPT.innerPicture && selectPPT.innerPicture.src"
                :parent="true"
                :initW="selectPPT.innerPicture.width"
@@ -365,7 +366,8 @@
          <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>
@@ -375,7 +377,7 @@
              size="small"
              @click="voiceData.show = !voiceData.show"
            />
          </div>
          </div> -->
        </div>
        <div v-if="selectPPT.driverType == 1" style="position: relative">
          <div class="middle-textarea">
@@ -767,8 +769,11 @@
}
const hostValue = ref({})
const chooseHost = (item) => {
  dialogVisible2.value = true
  // 数字人默认所有页,没有当前页选项
  hostValue.value = item
  chooseHost1(2)
  // dialogVisible2.value = true
}
const chooseHost1 = (index) => {
  if (index == 1) {
@@ -994,7 +999,7 @@
    getList1()
  } else if (item.name == t('courseCenter.sound')) {
    // 声音的处理       selectAudio
    if (selectLanguage.value === undefined) {
      // 获取语言种类
      getLanguageList()
@@ -1426,7 +1431,7 @@
}
const chooseTemplate = (currTemplate) => {
  console.log(currTemplate)
  console.log( "currTemplate", currTemplate)
  selectTemplate.value = cloneDeep(currTemplate)
  templates.value.forEach((item) => {
    item.isActive = false
@@ -1658,7 +1663,7 @@
//     initHumanPositon(item, selectPPT.value.digitalHuman)
//   }
// }
// 初始化数字人位置
const initHumanPositon = (hostData, digitalHuman) => {
  if (hostData.posture === 1) {
    digitalHuman.x = viewSize.width - digitalHuman.w
@@ -1869,7 +1874,8 @@
          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
      }
@@ -2068,8 +2074,8 @@
  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 {
@@ -2136,12 +2142,14 @@
}
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()