yxspeechrecognition 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/YxSpeechRecognition.common.js +93 -115
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +90 -112
- package/YxSpeechRecognition.umd.js.map +1 -1
- package/YxSpeechRecognition.umd.min.js +2 -2
- package/YxSpeechRecognition.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -416,6 +416,22 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADy
|
|
|
416
416
|
|
|
417
417
|
/***/ }),
|
|
418
418
|
|
|
419
|
+
/***/ 379:
|
|
420
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
421
|
+
|
|
422
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
423
|
+
|
|
424
|
+
// load the styles
|
|
425
|
+
var content = __webpack_require__(487);
|
|
426
|
+
if(content.__esModule) content = content.default;
|
|
427
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
428
|
+
if(content.locals) module.exports = content.locals;
|
|
429
|
+
// add the styles to the DOM
|
|
430
|
+
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
431
|
+
var update = add("9c79127c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
432
|
+
|
|
433
|
+
/***/ }),
|
|
434
|
+
|
|
419
435
|
/***/ 462:
|
|
420
436
|
/***/ (function(module) {
|
|
421
437
|
|
|
@@ -440,19 +456,7 @@ var update = add("bbdc8f9c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
440
456
|
|
|
441
457
|
/***/ }),
|
|
442
458
|
|
|
443
|
-
/***/
|
|
444
|
-
/***/ (function(module) {
|
|
445
|
-
|
|
446
|
-
"use strict";
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
module.exports = function (i) {
|
|
450
|
-
return i[1];
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
/***/ }),
|
|
454
|
-
|
|
455
|
-
/***/ 626:
|
|
459
|
+
/***/ 487:
|
|
456
460
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
457
461
|
|
|
458
462
|
"use strict";
|
|
@@ -466,42 +470,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
466
470
|
|
|
467
471
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
468
472
|
// Module
|
|
469
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-
|
|
473
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-76db6f54] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-76db6f54]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--3df6575d)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-76db6f54]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--3df6575d)*2.29);padding:0 calc(var(--3df6575d)*.76);box-sizing:border-box;background:linear-gradient(270deg,rgba(0,126,245,.94),rgba(54,141,253,.75) 70%,rgba(60,125,255,.51));border-radius:calc(var(--3df6575d)*.57) calc(var(--3df6575d)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-76db6f54]{display:flex;align-items:center;gap:calc(var(--3df6575d)*.38)}.yx-speech-recognition .box .title-icon img[data-v-76db6f54]{width:calc(var(--3df6575d)*1);height:calc(var(--3df6575d)*1)}.yx-speech-recognition .box .title-icon span[data-v-76db6f54]{font-size:calc(var(--3df6575d)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-76db6f54]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-76db6f54]{width:calc(var(--3df6575d)*1.1)}.yx-speech-recognition .box .content[data-v-76db6f54]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:url(http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon9-pl26do__.png) no-repeat center 35%;color:#fff}.yx-speech-recognition .box .content span[data-v-76db6f54]{margin-top:calc(var(--3df6575d)*7.5);font-size:calc(var(--3df6575d)*1)}.yx-speech-recognition .box .message-list[data-v-76db6f54]{overflow:hidden;padding:calc(var(--3df6575d)*.58);box-sizing:border-box;padding-right:calc(var(--3df6575d)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-76db6f54]{height:100%;display:flex;flex-direction:column;gap:calc(var(--3df6575d)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-76db6f54]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-76db6f54]{width:calc(var(--3df6575d)*3.76);height:calc(var(--3df6575d)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-76db6f54]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-76db6f54]{position:absolute;top:0;left:calc(var(--3df6575d)*3.76);width:-moz-max-content;width:max-content;min-width:-moz-min-content;min-width:min-content}.yx-speech-recognition .displayAssistant .bubbleBox .loading-box[data-v-76db6f54]{font-size:calc(var(--3df6575d)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-76db6f54]{width:calc(var(--3df6575d)*1.26);height:calc(var(--3df6575d)*1.28);margin-right:calc(var(--3df6575d)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-76db6f54]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-76db6f54]{border-top:calc(var(--3df6575d)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--3df6575d)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-76db6f54]{display:flex;overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-76db6f54]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-76db6f54]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-76db6f54]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-76db6f54]{flex-shrink:0;width:calc(var(--3df6575d)*1.2);font-size:calc(var(--3df6575d)*.9);height:calc(var(--3df6575d)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--3df6575d)*.1);margin-right:calc(var(--3df6575d)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-76db6f54]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-76db6f54]{font-size:calc(var(--3df6575d)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-76db6f54]{display:block;max-width:calc(var(--3df6575d)*19.21);font-size:calc(var(--3df6575d)*1);color:#fff;word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-76db6f54],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-76db6f54]{border-radius:calc(var(--3df6575d)*.27);padding:calc(var(--3df6575d)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-76db6f54]{background-color:rgba(13,23,135,.85);box-shadow:0 4px 15px rgba(106,17,203,.3)}.yx-speech-recognition .displayAssistant .bubbleBox-title-hi[data-v-76db6f54]{max-width:calc(var(--3df6575d)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-76db6f54]{margin-bottom:15px;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--3df6575d)*.57) 0 #d4d9ff}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-76db6f54]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-76db6f54]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-76db6f54]:before{border-top:calc(var(--3df6575d)*.25) solid transparent;border-bottom:calc(var(--3df6575d)*.25) solid transparent;border-right:calc(var(--3df6575d)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--3df6575d)*-.46));left:0;top:calc(var(--3df6575d)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-76db6f54]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--3df6575d)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-76db6f54]:before{border-right:calc(var(--3df6575d)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-76db6f54]:after{border-top:calc(var(--3df6575d)*.25) solid transparent;border-bottom:calc(var(--3df6575d)*.25) solid transparent;border-right:calc(var(--3df6575d)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--3df6575d)*-.46));left:0;top:calc(var(--3df6575d)*.48)}.inputContainer[data-v-76db6f54]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--3df6575d)*.57)}.inputContainer .inputBox[data-v-76db6f54]{margin:4px;flex:1;height:calc(var(--3df6575d)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--3df6575d)*.57);font-size:calc(var(--3df6575d)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-76db6f54]{margin-right:20px;flex-shrink:0}.container[data-v-76db6f54]{top:180px;left:700px;position:absolute;display:inline-block;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.1);transition:all .3s ease;width:-moz-fit-content;width:fit-content;max-width:600px;pointer-events:all;cursor:pointer}.container span[data-v-76db6f54]{white-space:pre-line;font-size:calc(var(--3df6575d)*1);color:#fff}.container .bottomBox[data-v-76db6f54],.container .topBox[data-v-76db6f54]{padding:25px;border-radius:8px;font-size:18px;font-weight:700;transition:all .3s ease;white-space:nowrap;display:block;max-width:600px;word-wrap:break-word;width:auto}.container .topBox[data-v-76db6f54]{background:rgba(70,61,255,.85);margin-bottom:10px;box-shadow:0 4px 15px rgba(106,17,203,.3)}.container .topBox[data-v-76db6f54]:after,.container .topBox[data-v-76db6f54]:before{content:\"\";display:block;position:absolute}.container .topBox[data-v-76db6f54]:before{border-top:calc(var(--3df6575d)*.25) solid transparent;border-bottom:calc(var(--3df6575d)*.25) solid transparent;border-right:calc(var(--3df6575d)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--3df6575d)*-.46));left:0;top:20px}.container .bottomBox[data-v-76db6f54]{background:rgba(2,11,72,.3);box-shadow:0 4px 15px rgba(255,154,158,.3)}", ""]);
|
|
470
474
|
// Exports
|
|
471
475
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
472
476
|
|
|
473
477
|
|
|
474
478
|
/***/ }),
|
|
475
479
|
|
|
476
|
-
/***/
|
|
480
|
+
/***/ 601:
|
|
477
481
|
/***/ (function(module) {
|
|
478
482
|
|
|
479
483
|
"use strict";
|
|
480
|
-
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
module.exports = function (i) {
|
|
487
|
+
return i[1];
|
|
488
|
+
};
|
|
481
489
|
|
|
482
490
|
/***/ }),
|
|
483
491
|
|
|
484
|
-
/***/
|
|
492
|
+
/***/ 780:
|
|
485
493
|
/***/ (function(module) {
|
|
486
494
|
|
|
487
495
|
"use strict";
|
|
488
|
-
module.exports = "data:image/png;base64,
|
|
496
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAwxJREFUaEPtme2nVUEUh3/LLRKJRFQkEhWJSCS6UlKiF/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-
/***/
|
|
493
|
-
/***/ (function(module
|
|
494
|
-
|
|
495
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
500
|
+
/***/ 812:
|
|
501
|
+
/***/ (function(module) {
|
|
496
502
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
if(content.__esModule) content = content.default;
|
|
500
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
501
|
-
if(content.locals) module.exports = content.locals;
|
|
502
|
-
// add the styles to the DOM
|
|
503
|
-
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
504
|
-
var update = add("6bc06797", content, true, {"sourceMap":false,"shadowMode":false});
|
|
503
|
+
"use strict";
|
|
504
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAMAAABGS8AGAAAC+lBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////J4P8UW7f41rtWRjJ2rf/////+/v9QlKHbwKLX6P/4+//M4v/r8//8/f/2+v/o8f/e7P/c6//b6v/P5P/9/f7K4P7T5v8bYbvI3/9+sv9tXkz6/P/h7f/U5v8kaMNaSjfv9f/t9f/N4v+Muv91rP5zq/331boXXbn107iQvf/C2/5upvpxqflpovbx2MUfZL8YXrrdwqRfUD9cTTmz0v+hx//H3v3h6vb38u7V3e6YvOuQtulFhNszdc5Phcuqt8hDfcgubcAiZbtZmrmgqbZhn6qHt//4+/z09/vM3/vp8fiwzvVln/Jgmu/Y5+tZlerZ3ehXkue7zuZNi+Fqmtqzw9lmotjk2tdilNZhkc+hxszs2csqbsg9eMYpasDn07/21r6Ds7zvzrTszLCdpLDnyK2ZoKrkxqlamqaXnaXbwKPHq5LCpY21m4VwaGCHclxsWkZYSDSmyv+XwP94r//l7/6tzv78+vjN3vjF2/i40/jn7vfb5fRwqvNmoPPn8PLT4PGgwu+/0+65zumzyujT5OdSj+Wow+SmweRppeKbueCVtd/g2959p95vntvw5Nc/f9d6otZynNPo2dKwvtJtmdJsmNI5etJW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0SoKGxZoqRukGSTMytsXu4ViHsS/IV9+EVjjDtsWekUySY8PdZvKVoQDI9DgBuy+REEikxXLftFegxP6JVYqgoF+ZhcFW9oq2hK0wyLIaFnSEGeWdfsfRcJqE2uiq+wJmB/aFqBFKQhaZpq6YqLAYwr3xbUVq4LGmIjdLvlowf3GtO8E9Y2fSagDzahd/DX69atSrNlmhfzhmNmO3kaSN0S3A1/F3SbGQf4wZxKHzwrrPUJPBfkntNXMOjsoEylm5P/iZk6+DRM4M0g+Ip2AIEyE/XkP16ucIzqg3bHcK9uAph/Rsepwx11aOUKc4Eld0kjw9a+JT3hLVe6lnKRAgtWEuorVclp4AvhiWllMfShJSG8iNU1pyzVAraFN4OeGApdAnNdaBHLXHbLGckIQWKZL8ATF8VhmTGSYy67mQuFncPzWcBxe8lz7gmYuKz54U4oFP5baTNxYGw2o+K9q+VXw2NP8ezYQKIobf5/xVi1fLw/WD7e/7fl4z8i0wTTxNNsyQAAAABJRU5ErkJggg==";
|
|
505
505
|
|
|
506
506
|
/***/ }),
|
|
507
507
|
|
|
@@ -896,7 +896,7 @@ if (typeof window !== 'undefined') {
|
|
|
896
896
|
// Indicate to webpack that this file can be concatenated
|
|
897
897
|
/* harmony default export */ var setPublicPath = (null);
|
|
898
898
|
|
|
899
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
899
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=template&id=76db6f54&scoped=true
|
|
900
900
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
901
901
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
902
902
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1057,7 +1057,7 @@ var staticRenderFns = [function () {
|
|
|
1057
1057
|
}, [_c('span', [_vm._v("Hi,我是小安,有问题,尽管问。")])]);
|
|
1058
1058
|
}];
|
|
1059
1059
|
|
|
1060
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
1060
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=76db6f54&scoped=true
|
|
1061
1061
|
|
|
1062
1062
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
1063
1063
|
var cryptojs = __webpack_require__(950);
|
|
@@ -16892,13 +16892,6 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16892
16892
|
}
|
|
16893
16893
|
},
|
|
16894
16894
|
watch: {
|
|
16895
|
-
waitSentenceId: {
|
|
16896
|
-
handler: function handler(val) {
|
|
16897
|
-
console.log("sencdkdkk", val);
|
|
16898
|
-
},
|
|
16899
|
-
immediate: true,
|
|
16900
|
-
deep: true
|
|
16901
|
-
},
|
|
16902
16895
|
voiecContent: function voiecContent(val) {
|
|
16903
16896
|
console.log("===============getContent==============", val);
|
|
16904
16897
|
if (Object.keys(val).length > 0) {
|
|
@@ -17052,7 +17045,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17052
17045
|
_this3.bubbleBoxType = type;
|
|
17053
17046
|
_this3.bubbleBoxTitle = content;
|
|
17054
17047
|
if (!(type === "TO" && res.result.slice_type === 2)) {
|
|
17055
|
-
_context.next =
|
|
17048
|
+
_context.next = 46;
|
|
17056
17049
|
break;
|
|
17057
17050
|
}
|
|
17058
17051
|
voice_id = res.voice_id, session_id = res.sessionId, sentenceId = res.sentenceId;
|
|
@@ -17066,34 +17059,33 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17066
17059
|
};
|
|
17067
17060
|
_this3.oneQuestionOneAnswer = false;
|
|
17068
17061
|
_context.prev = 13;
|
|
17069
|
-
|
|
17070
|
-
_context.next = 17;
|
|
17062
|
+
_context.next = 16;
|
|
17071
17063
|
return Tx.speech2speech2(formData);
|
|
17072
|
-
case
|
|
17064
|
+
case 16:
|
|
17073
17065
|
_res = _context.sent;
|
|
17074
17066
|
code = _res.code, msg = _res.msg, obj = _res.obj;
|
|
17075
17067
|
if (!(code == 200)) {
|
|
17076
|
-
_context.next =
|
|
17068
|
+
_context.next = 33;
|
|
17077
17069
|
break;
|
|
17078
17070
|
}
|
|
17079
17071
|
_content = "";
|
|
17080
17072
|
standard_back = obj.standard_back, command_type = obj.command_type;
|
|
17081
17073
|
if (!(Object.keys(obj).length > 0)) {
|
|
17082
|
-
_context.next =
|
|
17074
|
+
_context.next = 27;
|
|
17083
17075
|
break;
|
|
17084
17076
|
}
|
|
17085
17077
|
_content = standard_back || "抱歉,我还在学习中";
|
|
17086
17078
|
if (!(command_type === "地理实体页面定位" && _content != "抱歉,我还在学习中")) {
|
|
17087
|
-
_context.next =
|
|
17079
|
+
_context.next = 25;
|
|
17088
17080
|
break;
|
|
17089
17081
|
}
|
|
17090
17082
|
return _context.abrupt("return");
|
|
17091
|
-
case
|
|
17092
|
-
_context.next =
|
|
17083
|
+
case 25:
|
|
17084
|
+
_context.next = 28;
|
|
17093
17085
|
break;
|
|
17094
|
-
case
|
|
17086
|
+
case 27:
|
|
17095
17087
|
_content = "抱歉,我还在学习中";
|
|
17096
|
-
case
|
|
17088
|
+
case 28:
|
|
17097
17089
|
_this3.voiecContent = obj;
|
|
17098
17090
|
_opts = {
|
|
17099
17091
|
res: {},
|
|
@@ -17115,49 +17107,49 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17115
17107
|
// messages: { type: "FROM", content: _content },
|
|
17116
17108
|
// sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
17117
17109
|
// });
|
|
17118
|
-
_context.next =
|
|
17110
|
+
_context.next = 34;
|
|
17119
17111
|
break;
|
|
17120
|
-
case
|
|
17112
|
+
case 33:
|
|
17121
17113
|
if (code === 300) {
|
|
17122
|
-
|
|
17114
|
+
_this3.waitSentenceId = formData.sentence_id;
|
|
17123
17115
|
console.log("设置超时", _this3.waitSentenceId);
|
|
17124
17116
|
// this.timeOutContent()
|
|
17125
|
-
|
|
17117
|
+
// this.startWaitAnswer()
|
|
17126
17118
|
}
|
|
17127
|
-
case
|
|
17128
|
-
_context.next =
|
|
17119
|
+
case 34:
|
|
17120
|
+
_context.next = 42;
|
|
17129
17121
|
break;
|
|
17130
|
-
case
|
|
17131
|
-
_context.prev =
|
|
17122
|
+
case 36:
|
|
17123
|
+
_context.prev = 36;
|
|
17132
17124
|
_context.t0 = _context["catch"](13);
|
|
17133
17125
|
console.log("speech2speech2 ->", _context.t0);
|
|
17134
17126
|
console.log(_context.t0.message);
|
|
17135
17127
|
console.log(_context.t0 === null || _context.t0 === void 0 || (_error$message = _context.t0.message) === null || _error$message === void 0 ? void 0 : _error$message.includes("timeout"));
|
|
17136
17128
|
if (_context.t0 !== null && _context.t0 !== void 0 && (_error$message2 = _context.t0.message) !== null && _error$message2 !== void 0 && _error$message2.includes('timeout')) {
|
|
17137
|
-
|
|
17129
|
+
_this3.waitSentenceId = formData.sentence_id;
|
|
17138
17130
|
_this3.timeOutContent();
|
|
17139
17131
|
} else {
|
|
17140
17132
|
_this3.oneQuestionOneAnswer = true;
|
|
17141
17133
|
}
|
|
17142
|
-
case
|
|
17143
|
-
_context.prev =
|
|
17144
|
-
return _context.finish(
|
|
17145
|
-
case
|
|
17146
|
-
_context.next =
|
|
17134
|
+
case 42:
|
|
17135
|
+
_context.prev = 42;
|
|
17136
|
+
return _context.finish(42);
|
|
17137
|
+
case 44:
|
|
17138
|
+
_context.next = 47;
|
|
17147
17139
|
break;
|
|
17148
|
-
case
|
|
17140
|
+
case 46:
|
|
17149
17141
|
if (type === "FROM") {
|
|
17150
17142
|
_this3.handlePlayTTS({
|
|
17151
17143
|
content: content
|
|
17152
17144
|
});
|
|
17153
17145
|
}
|
|
17154
|
-
case
|
|
17146
|
+
case 47:
|
|
17155
17147
|
_this3.wakeUpTime = new Date().getTime();
|
|
17156
|
-
case
|
|
17148
|
+
case 48:
|
|
17157
17149
|
case "end":
|
|
17158
17150
|
return _context.stop();
|
|
17159
17151
|
}
|
|
17160
|
-
}, _callee, null, [[13,
|
|
17152
|
+
}, _callee, null, [[13, 36, 42, 44]]);
|
|
17161
17153
|
}))();
|
|
17162
17154
|
},
|
|
17163
17155
|
timeOutContent: function timeOutContent() {
|
|
@@ -17173,8 +17165,6 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17173
17165
|
sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
17174
17166
|
};
|
|
17175
17167
|
// this.updateSession(_opts)
|
|
17176
|
-
console.log("888888888", this.isWaitAnswer, !this.waitSentenceId, this.waitSentenceId);
|
|
17177
|
-
if (!this.isWaitAnswer || !this.waitSentenceId) return;
|
|
17178
17168
|
if (this.isWaitAnswer) {
|
|
17179
17169
|
this.handlePlayTTS({
|
|
17180
17170
|
content: message,
|
|
@@ -17186,25 +17176,22 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17186
17176
|
},
|
|
17187
17177
|
startWaitAnswer: function startWaitAnswer() {
|
|
17188
17178
|
var _this5 = this;
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17179
|
+
if (this.waitAnswerTimer) {
|
|
17180
|
+
this.endWaitAnswer();
|
|
17181
|
+
}
|
|
17192
17182
|
this.isWaitAnswer = true;
|
|
17193
17183
|
// const _that = this
|
|
17194
17184
|
this.waitAnswerTimer = setTimeout(function () {
|
|
17195
|
-
console.log("开始超时", _this5.waitAnswerTimer, _this5.waitSentenceId);
|
|
17196
17185
|
_this5.timeOutContent();
|
|
17197
|
-
},
|
|
17186
|
+
}, 3000);
|
|
17198
17187
|
},
|
|
17199
17188
|
endWaitAnswer: function endWaitAnswer() {
|
|
17200
|
-
console.log("爱你给出"
|
|
17189
|
+
console.log("爱你给出");
|
|
17201
17190
|
if (this.waitAnswerTimer) {
|
|
17202
|
-
console.log("清除计时器");
|
|
17203
17191
|
clearTimeout(this.waitAnswerTimer);
|
|
17204
17192
|
this.waitAnswerTimer = null;
|
|
17205
17193
|
}
|
|
17206
|
-
this
|
|
17207
|
-
// this.waitSentenceId = ""
|
|
17194
|
+
// this.waitSentenceId =
|
|
17208
17195
|
this.isWaitAnswer = false;
|
|
17209
17196
|
},
|
|
17210
17197
|
// 自动退出(静默20s) - 小宝助手
|
|
@@ -17248,7 +17235,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17248
17235
|
_context2.next = 5;
|
|
17249
17236
|
break;
|
|
17250
17237
|
}
|
|
17251
|
-
console.log("
|
|
17238
|
+
console.log("fanhuile");
|
|
17252
17239
|
return _context2.abrupt("return");
|
|
17253
17240
|
case 5:
|
|
17254
17241
|
_context2.next = 7;
|
|
@@ -17296,29 +17283,22 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17296
17283
|
onEnded && onEnded();
|
|
17297
17284
|
};
|
|
17298
17285
|
audio.addEventListener("ended", _onEndedHandler);
|
|
17299
|
-
if (!(content.includes('抱歉,请求已超时,请再试一下') && !_this7.isWaitAnswer)) {
|
|
17300
|
-
_context2.next = 20;
|
|
17301
|
-
break;
|
|
17302
|
-
}
|
|
17303
|
-
console.log("不用回答了啊");
|
|
17304
|
-
return _context2.abrupt("return");
|
|
17305
|
-
case 20:
|
|
17306
17286
|
onStart && onStart();
|
|
17307
17287
|
audio.play().catch(function (err) {
|
|
17308
17288
|
return console.warn('audio play failed', err);
|
|
17309
17289
|
});
|
|
17310
|
-
_context2.next =
|
|
17290
|
+
_context2.next = 25;
|
|
17311
17291
|
break;
|
|
17312
|
-
case
|
|
17313
|
-
_context2.prev =
|
|
17292
|
+
case 21:
|
|
17293
|
+
_context2.prev = 21;
|
|
17314
17294
|
_context2.t0 = _context2["catch"](0);
|
|
17315
17295
|
console.log("handlePlayTTS error", _context2.t0);
|
|
17316
17296
|
_this7.oneQuestionOneAnswer = true;
|
|
17317
|
-
case
|
|
17297
|
+
case 25:
|
|
17318
17298
|
case "end":
|
|
17319
17299
|
return _context2.stop();
|
|
17320
17300
|
}
|
|
17321
|
-
}, _callee2, null, [[0,
|
|
17301
|
+
}, _callee2, null, [[0, 21]]);
|
|
17322
17302
|
}))();
|
|
17323
17303
|
},
|
|
17324
17304
|
updateSessionId: function updateSessionId() {
|
|
@@ -17377,7 +17357,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17377
17357
|
filter_punc: 0,
|
|
17378
17358
|
convert_num_mode: 1,
|
|
17379
17359
|
word_info: 0,
|
|
17380
|
-
vad_silence_time:
|
|
17360
|
+
vad_silence_time: 500
|
|
17381
17361
|
};
|
|
17382
17362
|
var webAudioSpeechRecognizer = new WebAudioSpeechRecognizer(params);
|
|
17383
17363
|
|
|
@@ -17528,20 +17508,18 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17528
17508
|
var commandName = par === null || par === void 0 ? void 0 : par.command_name;
|
|
17529
17509
|
console.log(par, standard_back, require_ack, data);
|
|
17530
17510
|
console.log(this.isWaitAnswer, sentence_id, this.waitAnswerTimer, this.waitSentenceId, sentence_id == this.waitSentenceId);
|
|
17531
|
-
if (this.isWaitAnswer && sentence_id && this.waitSentenceId && sentence_id == this.waitSentenceId) {
|
|
17532
|
-
|
|
17533
|
-
|
|
17534
|
-
|
|
17535
|
-
|
|
17536
|
-
|
|
17537
|
-
|
|
17538
|
-
|
|
17539
|
-
|
|
17540
|
-
}
|
|
17541
|
-
this.
|
|
17542
|
-
this.
|
|
17543
|
-
console.log("接受到了信息", this.isWaitAnswer, this.waitSentenceId);
|
|
17544
|
-
this.endWaitAnswer();
|
|
17511
|
+
// if (this.isWaitAnswer && sentence_id && this.waitSentenceId && sentence_id == this.waitSentenceId) {
|
|
17512
|
+
// if (require_ack) {
|
|
17513
|
+
// this.sendMessage({
|
|
17514
|
+
// request_id,
|
|
17515
|
+
// execute_state: 'ok',
|
|
17516
|
+
// execute_info: {}
|
|
17517
|
+
// })
|
|
17518
|
+
// }
|
|
17519
|
+
// return; // 超时直接拒收
|
|
17520
|
+
// }
|
|
17521
|
+
// this.endWaitAnswer()
|
|
17522
|
+
// this.isWaitAnswer = false
|
|
17545
17523
|
if (!this.selfCode.includes(commandName)) {
|
|
17546
17524
|
//发送指令
|
|
17547
17525
|
this.voiecContent = data.obj;
|
|
@@ -17748,7 +17726,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17748
17726
|
var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
17749
17727
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
17750
17728
|
return {
|
|
17751
|
-
"
|
|
17729
|
+
"3df6575d": _vm.htmlFontSize
|
|
17752
17730
|
};
|
|
17753
17731
|
});
|
|
17754
17732
|
};
|
|
@@ -17760,9 +17738,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
|
|
|
17760
17738
|
/* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
|
|
17761
17739
|
;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
17762
17740
|
/* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
|
|
17763
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17764
|
-
var
|
|
17765
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17741
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=76db6f54&prod&lang=scss&scoped=true
|
|
17742
|
+
var SpeechRecognitionvue_type_style_index_0_id_76db6f54_prod_lang_scss_scoped_true = __webpack_require__(379);
|
|
17743
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=76db6f54&prod&lang=scss&scoped=true
|
|
17766
17744
|
|
|
17767
17745
|
;// ./package/SpeechRecognition/index.vue
|
|
17768
17746
|
|
|
@@ -17779,7 +17757,7 @@ var SpeechRecognition_component = normalizeComponent(
|
|
|
17779
17757
|
staticRenderFns,
|
|
17780
17758
|
false,
|
|
17781
17759
|
null,
|
|
17782
|
-
"
|
|
17760
|
+
"76db6f54",
|
|
17783
17761
|
null
|
|
17784
17762
|
|
|
17785
17763
|
)
|