|
@@ -329,9 +329,16 @@ export default {
|
|
|
// this.isloading = true
|
|
|
// this.beforeUpload1(audioFile, 3);
|
|
|
// return;
|
|
|
- if (this.cjson.type == 'theme') {
|
|
|
- this.isloading = true
|
|
|
- this.beforeUpload1(audioFile, 3);
|
|
|
+ if (this.cjson.type == 'theme' || this.cjson.type == 'QA') {
|
|
|
+ this.isloading = true
|
|
|
+ let _this = this
|
|
|
+ iiframe.contentWindow.onRecognizedResult = function (e) {
|
|
|
+ console.log('onRecognizedResult', e);
|
|
|
+ let privText = e.privText
|
|
|
+ _this.beforeUpload1(audioFile, 3, privText);
|
|
|
+ }
|
|
|
+
|
|
|
+ iiframe.contentWindow.doContinuousPronunciationAssessment('', { files: [audioFile] })
|
|
|
} else if (this.cjson.type == 'createRole') {
|
|
|
// this.isloading = true
|
|
|
// this.beforeUpload1(audioFile, 3);
|