|
@@ -30,6 +30,15 @@
|
|
|
size="small"
|
|
|
@click="analyzeVoiceFile"
|
|
|
>根据语音和文本进行打点标记</el-button>
|
|
|
+ <span :style="{'margin': '12px'}">匹配模式</span>
|
|
|
+ <el-select v-model="match_type" size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="li in matchTypeList"
|
|
|
+ :key="li.type"
|
|
|
+ :label="li.name"
|
|
|
+ :value="li.type"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
|
|
|
<div class="voice-matrix-input">
|
|
|
<el-input
|
|
@@ -147,6 +156,7 @@ export default {
|
|
|
lrc_list: []
|
|
|
},
|
|
|
isShowMatrix: false,
|
|
|
+ match_type: 'pinyin',
|
|
|
rowNumber: 1,
|
|
|
columnNumber: 1,
|
|
|
typeList: [
|
|
@@ -163,6 +173,11 @@ export default {
|
|
|
name: "句子分词"
|
|
|
}
|
|
|
],
|
|
|
+ matchTypeList: [
|
|
|
+ { type: "pinyin", name: "纯拼音(例:yu)" },
|
|
|
+ { type: "chinese", name: "中文(例:鱼)" },
|
|
|
+ { type: "pinyinWithToneMark", name: "拼音符号音调(例:yú)" }
|
|
|
+ ],
|
|
|
data_structure: {
|
|
|
type: "voice_matrix",
|
|
|
name: "语音矩阵",
|
|
@@ -267,7 +282,9 @@ export default {
|
|
|
let loading = this.$loading({ text: "正在分析,请等待" });
|
|
|
getContentFile("tool-AnalyzeVoiceFile", {
|
|
|
file_id: mp3_list[0].file_id,
|
|
|
- text_list
|
|
|
+ text_list,
|
|
|
+ language: 'ZH',
|
|
|
+ match_type: this.match_type
|
|
|
})
|
|
|
.then(({ lrc_list }) => {
|
|
|
loading.close();
|