lsc 1 jaar geleden
bovenliggende
commit
787ca9c105

+ 1 - 1
dist/index.html

@@ -18,7 +18,7 @@
       border-radius: 10px;
       -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
       background-color: rgba(0, 0, 0, 0.1);
-    }</style><link href=./static/css/app.e297cbf57077f0e25784cfbabeb6210e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.2ea62301d5bc18e5b15b.js></script><script type=text/javascript src=./static/js/app.85495d98c4b87c720afe.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.791c2ba23d03563b66fd8f18608dfc68.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.2ea62301d5bc18e5b15b.js></script><script type=text/javascript src=./static/js/app.3def53eceaa7b6a67fcc.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.791c2ba23d03563b66fd8f18608dfc68.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.791c2ba23d03563b66fd8f18608dfc68.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.3def53eceaa7b6a67fcc.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.3def53eceaa7b6a67fcc.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 10 - 3
src/components/EnglishVoice2/component/right.vue

@@ -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);

+ 13 - 5
src/components/EnglishVoice2/index.vue

@@ -115,12 +115,20 @@ export default {
                 this.work[index] = jSON.parse(JSON.stringify(url))
             }else{
                 if(star){
-                
-                }
-                this.work[index] = {
-                    audio:url,
-                    text:text
+                    let score = parseInt(star.AccuracyScore / 20)
+                    this.work[index] = {
+                        audio:url,
+                        text:text,
+                        score:score,
+                        star:star
+                    }
+                }else{
+                    this.work[index] = {
+                        audio:url,
+                        text:text
+                    }
                 }
+
             }
         },
         addEnglishWork() {

Some files were not shown because too many files changed in this diff