浏览代码

语音矩阵 audio-line 组件增加 audio-id

dusenyao 3 年之前
父节点
当前提交
d93f621ed0
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 3 3
      src/components/Adult/inputModules/VoiceMatrix.vue
  2. 1 0
      src/components/Adult/preview/VoiceMatrix.vue

+ 3 - 3
src/components/Adult/inputModules/VoiceMatrix.vue

@@ -30,7 +30,7 @@
       size="small"
       @click="analyzeVoiceFile"
     >根据语音和文本进行打点标记</el-button>
-    <span :style="{'margin': '12px'}">匹配模式</span>
+    <span :style="{ margin: '12px' }">匹配模式</span>
     <el-select v-model="match_type" size="small">
       <el-option
         v-for="li in matchTypeList"
@@ -156,7 +156,7 @@ export default {
         lrc_list: []
       },
       isShowMatrix: false,
-      match_type: 'pinyin',
+      match_type: "pinyin",
       rowNumber: 1,
       columnNumber: 1,
       typeList: [
@@ -283,7 +283,7 @@ export default {
       getContentFile("tool-AnalyzeVoiceFile", {
         file_id: mp3_list[0].file_id,
         text_list,
-        language: 'ZH',
+        language: "ZH",
         match_type: this.match_type
       })
         .then(({ lrc_list }) => {

+ 1 - 0
src/components/Adult/preview/VoiceMatrix.vue

@@ -18,6 +18,7 @@
       <audio-line
         v-show="!hasSelectedCell"
         ref="audioLine"
+        audio-id="voiceMatrixAudio"
         :mp3="mp3Url"
         :get-cur-time="getCurTime"
         :stop-audio="stopAudio"