|
|
@@ -270,6 +270,11 @@
|
|
|
<el-option v-for="{ emotion, name } in emotion_list" :key="emotion" :label="name" :value="emotion" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="语速">
|
|
|
+ <el-select v-model="data.property.speed_ratio">
|
|
|
+ <el-option v-for="{ value, label } in speedRatioList" :key="value" :label="label" :value="value" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</template>
|
|
|
|
|
|
<el-form-item label="拼音位置">
|
|
|
@@ -309,6 +314,7 @@ import {
|
|
|
pinyinPositionLists,
|
|
|
} from '@/views/book/courseware/data/article';
|
|
|
import cnchar from 'cnchar';
|
|
|
+import { speedRatioList } from '@/views/book/courseware/data/common';
|
|
|
|
|
|
export default {
|
|
|
name: 'NewWordPage',
|
|
|
@@ -335,6 +341,7 @@ export default {
|
|
|
subtitleList: [],
|
|
|
voice_type_list: [],
|
|
|
emotion_list: [],
|
|
|
+ speedRatioList,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -493,6 +500,7 @@ export default {
|
|
|
text: this.data.new_word_list[index].new_word.replace(/<[^>]+>/g, ''),
|
|
|
voice_type: this.data.property.voice_type,
|
|
|
emotion: this.data.property.emotion,
|
|
|
+ speed_ratio: this.data.property.speed_ratio,
|
|
|
})
|
|
|
.then(({ status, file_id }) => {
|
|
|
if (status === 1) {
|