|
@@ -1642,7 +1642,7 @@ ${JSON.stringify(_list)}
|
|
"languageOptions"
|
|
"languageOptions"
|
|
).selectedIndex = this.languageRadio;
|
|
).selectedIndex = this.languageRadio;
|
|
_this.transcriptionData.content = "";
|
|
_this.transcriptionData.content = "";
|
|
- iiframe.contentWindow.onRecognizedResult = function(e) {
|
|
|
|
|
|
+ iiframe.contentWindow.window.onRecognizedResult = function(e) {
|
|
if (flag) {
|
|
if (flag) {
|
|
// 这里上传文件
|
|
// 这里上传文件
|
|
// _this.uploadWavFile(audioFile);
|
|
// _this.uploadWavFile(audioFile);
|
|
@@ -3117,7 +3117,7 @@ ${JSON.stringify(_list)}
|
|
// 录音开始
|
|
// 录音开始
|
|
let flag = true;
|
|
let flag = true;
|
|
console.log("开始录音")
|
|
console.log("开始录音")
|
|
- iiframe.contentWindow.onRecognizedResult = e => {
|
|
|
|
|
|
+ iiframe.contentWindow.window.onRecognizedResult = e => {
|
|
// let e = {
|
|
// let e = {
|
|
// privText:"测试测试"
|
|
// privText:"测试测试"
|
|
// }
|
|
// }
|
|
@@ -3253,7 +3253,7 @@ ${JSON.stringify(_list)}
|
|
});
|
|
});
|
|
this.uploadFile(file, { changeText: false, flag: true });
|
|
this.uploadFile(file, { changeText: false, flag: true });
|
|
iiframe.contentWindow.onSessionStopped = null;
|
|
iiframe.contentWindow.onSessionStopped = null;
|
|
- iiframe.contentWindow.onRecognizedResult = null;
|
|
|
|
|
|
+ iiframe.contentWindow.window.onRecognizedResult = null;
|
|
};
|
|
};
|
|
} else if (this.recordedForm.status == 2) {
|
|
} else if (this.recordedForm.status == 2) {
|
|
//暂停录音时
|
|
//暂停录音时
|