|
|
@@ -218,7 +218,7 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<SvgIcon icon-class="delete-black" size="12" @click="removeFile('audio')" />
|
|
|
- <ResourcesOperate :data="data.audio_data"></ResourcesOperate>
|
|
|
+ <ResourcesOperate :data="data.audio_data" />
|
|
|
</div>
|
|
|
<SelectUpload label="音频字幕(lrc)文件" :limit="1" type="lrc" @uploadSuccess="uploadLrcSuccess" />
|
|
|
<div v-if="data.lrc_data.url.length > 0" class="upload-file">
|
|
|
@@ -229,7 +229,7 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<SvgIcon icon-class="delete-black" size="12" @click="removeFile('lrc')" />
|
|
|
- <ResourcesOperate :data="data.lrc_data"></ResourcesOperate>
|
|
|
+ <ResourcesOperate :data="data.lrc_data" />
|
|
|
</div>
|
|
|
<div class="lrc-box" style="margin: 5px 0">
|
|
|
<div v-if="data.lrc_arr && data.lrc_arr.length > 0" class="lrc-box">
|
|
|
@@ -343,8 +343,8 @@ export default {
|
|
|
CheckSubtitles,
|
|
|
ResourcesOperate,
|
|
|
},
|
|
|
- props: ['dataNewWord', 'unifiedAttrib'],
|
|
|
mixins: [ModuleMixin],
|
|
|
+ props: ['dataNewWord', 'unifiedAttrib'],
|
|
|
data() {
|
|
|
return {
|
|
|
data: this.dataNewWord,
|
|
|
@@ -363,6 +363,9 @@ export default {
|
|
|
autoLoading: false,
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.getTextToAudioConfParamList();
|
|
|
+ },
|
|
|
methods: {
|
|
|
getOption() {
|
|
|
return {
|
|
|
@@ -565,7 +568,7 @@ export default {
|
|
|
this.data.new_word_list.length > 0 ? this.data.new_word_list[this.data.new_word_list.length - 1].number : '0';
|
|
|
this.data.new_word_list.push(this.getOption());
|
|
|
if (!isNaN(number) && !isNaN(parseFloat(number))) {
|
|
|
- this.data.new_word_list[this.data.new_word_list.length - 1].number = number * 1 + 1;
|
|
|
+ this.data.new_word_list[this.data.new_word_list.length - 1].number = Number(number) + 1;
|
|
|
}
|
|
|
},
|
|
|
// 获取数据
|
|
|
@@ -608,7 +611,7 @@ export default {
|
|
|
// 自动生成拼音
|
|
|
handlePinyin(text) {
|
|
|
let data = {
|
|
|
- text: text,
|
|
|
+ text,
|
|
|
is_rich_text: 'false',
|
|
|
is_first_sentence_first_hz_pinyin_first_char_upper_case: 'false',
|
|
|
is_fill_space: 'false',
|
|
|
@@ -621,7 +624,7 @@ export default {
|
|
|
res.parsed_text.paragraph_list.map((outerArr, i) =>
|
|
|
outerArr.map((innerArr, j) =>
|
|
|
innerArr.map((newItem, k) => {
|
|
|
- mergedData += newItem.pinyin + ' ';
|
|
|
+ mergedData += `${newItem.pinyin} `;
|
|
|
}),
|
|
|
),
|
|
|
);
|
|
|
@@ -635,13 +638,13 @@ export default {
|
|
|
let text = '';
|
|
|
this.data.new_word_list.forEach((sItem, index) => {
|
|
|
// item.forEach((sItem, sIndex) => {
|
|
|
- text += sItem.new_word + '。';
|
|
|
+ text += `${sItem.new_word}。`;
|
|
|
// });
|
|
|
});
|
|
|
this.isWordTime = true;
|
|
|
let data = {
|
|
|
audio_file_id: this.data.audio_data.file_id,
|
|
|
- text: text,
|
|
|
+ text,
|
|
|
text_type: 'text',
|
|
|
};
|
|
|
getWordTimes(data)
|
|
|
@@ -749,7 +752,7 @@ export default {
|
|
|
// });
|
|
|
});
|
|
|
TextToAudioFile({
|
|
|
- text: text,
|
|
|
+ text,
|
|
|
voice_type: this.data.property.voice_type,
|
|
|
emotion: this.data.property.emotion,
|
|
|
speed_ratio: this.data.property.speed_ratio,
|
|
|
@@ -772,9 +775,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
- created() {
|
|
|
- this.getTextToAudioConfParamList();
|
|
|
- },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|