康鲁杰
2025-03-24 edbf2aa3d5651a41ea3c11b7576bd4a5220f62ab
试听
已修改1个文件
17 ■■■■ 文件已修改
easegen-front/src/views/chooseTemplate/index.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/views/chooseTemplate/index.vue
@@ -1692,10 +1692,6 @@
    editorRef.value.move(1);
}
const createAudio = async () => {
  if (!audioSelectData.value || audioSelectData.value.length == 0) {
    message.warning('请选择声音模型!')
    return false
  }
  // if (!selectTextarea.value || selectTextarea.value.length == 0) {
  //   message.warning('请划选至少一个汉字')
  //   return false
@@ -1705,17 +1701,10 @@
        return false
    }
    // 获取编辑器 HTML 内容
    const html = editorRef.value.getHtml();
    const ssllHtml = editorHtml.elemToHtml(html);
    const html = editorRef.value.getText();
  const params = {
    text: ssllHtml,
    speed: voiceData.speechRate, //语速
    pitch: 1, // 音高固定为1
    volume: voiceData.volume, //音量
    voiceType: 37,
    voiceTypeId: 51,
    voiceId: audioSelectData.value[0].id,
    smartSpeed: 1 //智能语速 预留
    text: html,
    humans: 1
  }
  showAudioPlay.value = true
  pptTemplateApi