|
@@ -709,6 +709,7 @@ export default {
|
|
this.showIndexPage = false;
|
|
this.showIndexPage = false;
|
|
this.pageStatus = 1;
|
|
this.pageStatus = 1;
|
|
this.controlsStatus = 2;
|
|
this.controlsStatus = 2;
|
|
|
|
+ this.recordedForm.status = 3
|
|
// let file = this.convertToMp3(recorder.getWAV());
|
|
// let file = this.convertToMp3(recorder.getWAV());
|
|
const mp3Blob = recorder.getWAVBlob();
|
|
const mp3Blob = recorder.getWAVBlob();
|
|
let audioFile = this.dataURLtoAudio(mp3Blob, "wav");
|
|
let audioFile = this.dataURLtoAudio(mp3Blob, "wav");
|
|
@@ -1020,16 +1021,23 @@ export default {
|
|
},
|
|
},
|
|
wavFileGetText(audioFile) {
|
|
wavFileGetText(audioFile) {
|
|
let flag = true;
|
|
let flag = true;
|
|
- // if(flag){
|
|
|
|
|
|
+ // if (flag) {
|
|
// // 这里上传文件
|
|
// // 这里上传文件
|
|
- // this.uploadWavFile(audioFile)
|
|
|
|
|
|
+ // // _this.uploadWavFile(audioFile);
|
|
// this.controlsStatus = 2;
|
|
// this.controlsStatus = 2;
|
|
// this.showIndexPage = false;
|
|
// this.showIndexPage = false;
|
|
// this.pageStatus = 1;
|
|
// this.pageStatus = 1;
|
|
|
|
+ // this.editorBarData.type = "0";
|
|
// flag = false;
|
|
// flag = false;
|
|
|
|
+ // this.uploadFileLoading = false;
|
|
// }
|
|
// }
|
|
- // this.transcriptionData.content += "这是个测试";
|
|
|
|
- // this.editorBarData.content +="这是个测试";
|
|
|
|
|
|
+ // this.showGetTextLoading = true;
|
|
|
|
+ // this.transcriptionData.content += "这是测试";
|
|
|
|
+ // this.editorBarData.content += "这是测试";
|
|
|
|
+
|
|
|
|
+ // setTimeout(()=>{
|
|
|
|
+ // this.showGetTextLoading = false;
|
|
|
|
+ // },4000)
|
|
// return;
|
|
// return;
|
|
let iiframe = this.$refs["iiframe"];
|
|
let iiframe = this.$refs["iiframe"];
|
|
let _this = this;
|
|
let _this = this;
|
|
@@ -1057,6 +1065,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
iiframe.contentWindow.sessionStopped = function(e){
|
|
iiframe.contentWindow.sessionStopped = function(e){
|
|
|
|
+ console.log('转译完成')
|
|
|
|
+ console.log(e)
|
|
_this.$message.success("转译完成")
|
|
_this.$message.success("转译完成")
|
|
_this.showGetTextLoading = false;
|
|
_this.showGetTextLoading = false;
|
|
_this.saveEditorBar();
|
|
_this.saveEditorBar();
|