|
@@ -184,11 +184,8 @@ export default {
|
|
|
console.log(audioFile);
|
|
|
let iiframe = this.$refs['iiframe']
|
|
|
// iiframe.contentWindow.doPronunciationAssessmentOnceAsync('', { files: [audioFile] })
|
|
|
- iiframe.contentWindow.doContinuousPronunciationAssessment('', { files: [audioFile] })
|
|
|
-
|
|
|
- this.isloading = true
|
|
|
let _this = this
|
|
|
- iiframe.contentWindow.onRecognizedResult = function (e) {
|
|
|
+ window.onRecognizedResult = function (e) {
|
|
|
console.log('onRecognizedResult', e);
|
|
|
let privText = e.privText
|
|
|
// e.privText
|
|
@@ -196,6 +193,10 @@ export default {
|
|
|
|
|
|
_this.beforeUpload1(audioFile, 3, privText);
|
|
|
}
|
|
|
+ iiframe.contentWindow.doContinuousPronunciationAssessment('', { files: [audioFile] })
|
|
|
+
|
|
|
+ _this.isloading = true
|
|
|
+
|
|
|
// recorder.download(mp3Blob, "recorder", "mp3");
|
|
|
},
|
|
|
convertToMp3(wavDataView) {
|