yxspeechrecognition 1.7.9 → 1.8.1
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 +159 -78
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +159 -78
- 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
|
@@ -19,24 +19,19 @@ module.exports = "data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy
|
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/
|
|
23
|
-
/***/ (function(module,
|
|
24
|
-
|
|
25
|
-
"use strict";
|
|
26
|
-
__webpack_require__.r(__webpack_exports__);
|
|
27
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
28
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
29
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
30
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
31
|
-
// Imports
|
|
32
|
-
|
|
22
|
+
/***/ 266:
|
|
23
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
33
24
|
|
|
34
|
-
|
|
35
|
-
// Module
|
|
36
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-35deadb7] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-35deadb7]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--73112a8c)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-35deadb7]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--73112a8c)*2.29);padding:0 calc(var(--73112a8c)*.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(--73112a8c)*.57) calc(var(--73112a8c)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-35deadb7]{display:flex;align-items:center;gap:calc(var(--73112a8c)*.38)}.yx-speech-recognition .box .title-icon img[data-v-35deadb7]{width:calc(var(--73112a8c)*1);height:calc(var(--73112a8c)*1)}.yx-speech-recognition .box .title-icon span[data-v-35deadb7]{font-size:calc(var(--73112a8c)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-35deadb7]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-35deadb7]{width:calc(var(--73112a8c)*1.1)}.yx-speech-recognition .box .content[data-v-35deadb7]{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-35deadb7]{margin-top:calc(var(--73112a8c)*7.5);font-size:calc(var(--73112a8c)*1)}.yx-speech-recognition .box .message-list[data-v-35deadb7]{overflow:hidden;padding:calc(var(--73112a8c)*.58);box-sizing:border-box;padding-right:calc(var(--73112a8c)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-35deadb7]{height:100%;display:flex;flex-direction:column;gap:calc(var(--73112a8c)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-35deadb7]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-35deadb7]{width:calc(var(--73112a8c)*3.76);height:calc(var(--73112a8c)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-35deadb7]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-35deadb7]{position:absolute;top:0;left:calc(var(--73112a8c)*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-35deadb7]{font-size:calc(var(--73112a8c)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-35deadb7]{width:calc(var(--73112a8c)*1.26);height:calc(var(--73112a8c)*1.28);margin-right:calc(var(--73112a8c)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-35deadb7]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-35deadb7]{border-top:calc(var(--73112a8c)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--73112a8c)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-35deadb7]{display:flex;overflow:hidden;margin:10px 0}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-35deadb7]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-35deadb7]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-35deadb7]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-35deadb7]{flex-shrink:0;width:calc(var(--73112a8c)*1.2);font-size:calc(var(--73112a8c)*.9);height:calc(var(--73112a8c)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--73112a8c)*.1);margin-right:calc(var(--73112a8c)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-35deadb7]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-label[data-v-35deadb7]{display:inline-block;width:auto;font-size:calc(var(--73112a8c)*.9);border-radius:5px;padding:0 8px}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-35deadb7]{font-size:calc(var(--73112a8c)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-35deadb7]{display:block;max-width:calc(var(--73112a8c)*19.21);font-size:calc(var(--73112a8c)*1);color:#fff;word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-35deadb7],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-35deadb7]{border-radius:calc(var(--73112a8c)*.27);padding:calc(var(--73112a8c)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-35deadb7]{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-35deadb7]{max-width:calc(var(--73112a8c)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-35deadb7]{margin-bottom:15px;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--73112a8c)*.57) 0 #d4d9ff}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-35deadb7]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-35deadb7]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-35deadb7]:before{border-top:calc(var(--73112a8c)*.25) solid transparent;border-bottom:calc(var(--73112a8c)*.25) solid transparent;border-right:calc(var(--73112a8c)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--73112a8c)*-.46));left:0;top:calc(var(--73112a8c)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-35deadb7]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--73112a8c)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-35deadb7]:before{border-right:calc(var(--73112a8c)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-35deadb7]:after{border-top:calc(var(--73112a8c)*.25) solid transparent;border-bottom:calc(var(--73112a8c)*.25) solid transparent;border-right:calc(var(--73112a8c)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--73112a8c)*-.46));left:0;top:calc(var(--73112a8c)*.48)}.inputContainer[data-v-35deadb7]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--73112a8c)*.57)}.inputContainer .inputBox[data-v-35deadb7]{margin:4px;flex:1;height:calc(var(--73112a8c)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--73112a8c)*.57);font-size:calc(var(--73112a8c)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-35deadb7]{margin-right:20px;flex-shrink:0}", ""]);
|
|
37
|
-
// Exports
|
|
38
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
25
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
39
26
|
|
|
27
|
+
// load the styles
|
|
28
|
+
var content = __webpack_require__(432);
|
|
29
|
+
if(content.__esModule) content = content.default;
|
|
30
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
31
|
+
if(content.locals) module.exports = content.locals;
|
|
32
|
+
// add the styles to the DOM
|
|
33
|
+
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
34
|
+
var update = add("45af2603", content, true, {"sourceMap":false,"shadowMode":false});
|
|
40
35
|
|
|
41
36
|
/***/ }),
|
|
42
37
|
|
|
@@ -148,23 +143,28 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADy
|
|
|
148
143
|
|
|
149
144
|
/***/ }),
|
|
150
145
|
|
|
151
|
-
/***/
|
|
152
|
-
/***/ (function(module,
|
|
146
|
+
/***/ 355:
|
|
147
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
153
148
|
|
|
154
|
-
|
|
149
|
+
"use strict";
|
|
150
|
+
__webpack_require__.r(__webpack_exports__);
|
|
151
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
152
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
153
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
154
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
155
|
+
// Imports
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
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()));
|
|
159
|
+
// Module
|
|
160
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".message-wrapper[data-v-6b10e4ec]{display:flex;gap:.1rem;padding-right:calc(var(--741e3eee)*.29)}.message-content[data-v-6b10e4ec]{flex:1}.message-content-inner[data-v-6b10e4ec]{box-sizing:border-box;padding:calc(var(--741e3eee)*.38);display:flex;flex-direction:column}.message-content-inner[data-v-6b10e4ec]:after,.message-content-inner[data-v-6b10e4ec]:before{content:\"\";display:block;position:absolute}.message-content .normal__text[data-v-6b10e4ec],.message-content__text[data-v-6b10e4ec]{font-size:calc(var(--741e3eee)*1);line-height:calc(var(--741e3eee)*1.5);color:#fff;word-break:break-all}.message-content .normal__text[data-v-6b10e4ec]{margin-top:calc(var(--741e3eee)*.2);border-top:calc(var(--741e3eee)*.1) solid rgba(117,178,255,.61)}.message-content .normal__text .item-box[data-v-6b10e4ec]{display:flex;margin:6px 0}.message-content .normal__text .item-box:nth-child(2) .item-box-number[data-v-6b10e4ec]{background-color:#ff4e4e}.message-content .normal__text .item-box:nth-child(3) .item-box-number[data-v-6b10e4ec]{background-color:#ff6e1d}.message-content .normal__text .item-box:nth-child(4) .item-box-number[data-v-6b10e4ec]{background-color:#4fc94d}.message-content .normal__text .item-box .item-box-index[data-v-6b10e4ec]{flex-shrink:0;width:calc(var(--741e3eee)*1.2);font-size:calc(var(--741e3eee)*.9);height:calc(var(--741e3eee)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--741e3eee)*.1);margin-right:calc(var(--741e3eee)*.1)}.message-content .normal__text .item-box .item-box-label[data-v-6b10e4ec]{font-size:calc(var(--741e3eee)*.9);border-radius:5px;padding:0 8px}.message-content .normal__text .item-box .item-box-description[data-v-6b10e4ec]{font-size:calc(var(--741e3eee)*.9);color:hsla(0,0%,100%,.74)}.message-avatar[data-v-6b10e4ec]{width:calc(var(--741e3eee)*2.1);height:calc(var(--741e3eee)*2.1);border-radius:100%;box-sizing:border-box;overflow:hidden;flex-shrink:0}.message-avatar img[data-v-6b10e4ec]{background-color:hsla(0,0%,100%,0);width:100%;height:100%}.message-type__none[data-v-6b10e4ec]{margin-top:.21rem}.message-type__to .message-content[data-v-6b10e4ec]{display:flex;justify-content:flex-end;margin-left:calc(var(--741e3eee)*.49)}.message-type__from .message-content[data-v-6b10e4ec]{display:flex;justify-content:flex-start;margin-right:calc(var(--741e3eee)*.45)}.message-type__to .message-content-inner[data-v-6b10e4ec]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--741e3eee)*.57) 0 #fff3b4;border-radius:calc(var(--741e3eee)*.27);position:relative;margin-right:calc(var(--741e3eee)*.45)}.message-type__to .message-content-inner[data-v-6b10e4ec]:after{border-top:calc(var(--741e3eee)*.25) solid transparent;border-bottom:calc(var(--741e3eee)*.25) solid transparent;border-left:calc(var(--741e3eee)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--741e3eee)*.43));right:0;top:calc(var(--741e3eee)*.48)}.message-type__from .message-content-inner[data-v-6b10e4ec]{background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--741e3eee)*.57) 0 #d4d9ff;border-radius:calc(var(--741e3eee)*.27);position:relative;margin-left:calc(var(--741e3eee)*.49)}.message-type__from .message-content-inner[data-v-6b10e4ec]:before{border-top:calc(var(--741e3eee)*.25) solid transparent;border-bottom:calc(var(--741e3eee)*.25) solid transparent;border-right:calc(var(--741e3eee)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--741e3eee)*-.46));left:0;top:calc(var(--741e3eee)*.48)}.message-type__to .message-avatar[data-v-6b10e4ec]{overflow:hidden}.message-type__none .message-content-inner[data-v-6b10e4ec]{background-color:#fff;position:relative;margin-left:.15rem}", ""]);
|
|
161
|
+
// Exports
|
|
162
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
155
163
|
|
|
156
|
-
// load the styles
|
|
157
|
-
var content = __webpack_require__(56);
|
|
158
|
-
if(content.__esModule) content = content.default;
|
|
159
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
160
|
-
if(content.locals) module.exports = content.locals;
|
|
161
|
-
// add the styles to the DOM
|
|
162
|
-
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
163
|
-
var update = add("1abf892f", content, true, {"sourceMap":false,"shadowMode":false});
|
|
164
164
|
|
|
165
165
|
/***/ }),
|
|
166
166
|
|
|
167
|
-
/***/
|
|
167
|
+
/***/ 432:
|
|
168
168
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
169
169
|
|
|
170
170
|
"use strict";
|
|
@@ -178,7 +178,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
178
178
|
|
|
179
179
|
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()));
|
|
180
180
|
// Module
|
|
181
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".
|
|
181
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-494acfe7] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-494acfe7]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--e062d190)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-494acfe7]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--e062d190)*2.29);padding:0 calc(var(--e062d190)*.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(--e062d190)*.57) calc(var(--e062d190)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-494acfe7]{display:flex;align-items:center;gap:calc(var(--e062d190)*.38)}.yx-speech-recognition .box .title-icon img[data-v-494acfe7]{width:calc(var(--e062d190)*1);height:calc(var(--e062d190)*1)}.yx-speech-recognition .box .title-icon span[data-v-494acfe7]{font-size:calc(var(--e062d190)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-494acfe7]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-494acfe7]{width:calc(var(--e062d190)*1.1)}.yx-speech-recognition .box .content[data-v-494acfe7]{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-494acfe7]{margin-top:calc(var(--e062d190)*7.5);font-size:calc(var(--e062d190)*1)}.yx-speech-recognition .box .message-list[data-v-494acfe7]{overflow:hidden;padding:calc(var(--e062d190)*.58);box-sizing:border-box;padding-right:calc(var(--e062d190)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-494acfe7]{height:100%;display:flex;flex-direction:column;gap:calc(var(--e062d190)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-494acfe7]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-494acfe7]{width:calc(var(--e062d190)*3.76);height:calc(var(--e062d190)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-494acfe7]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-494acfe7]{position:absolute;top:0;left:calc(var(--e062d190)*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-494acfe7]{font-size:calc(var(--e062d190)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-494acfe7]{width:calc(var(--e062d190)*1.26);height:calc(var(--e062d190)*1.28);margin-right:calc(var(--e062d190)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-494acfe7]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-494acfe7]{border-top:calc(var(--e062d190)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--e062d190)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-494acfe7]{display:flex;overflow:hidden;margin:10px 0}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-494acfe7]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-494acfe7]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-494acfe7]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-494acfe7]{flex-shrink:0;width:calc(var(--e062d190)*1.2);font-size:calc(var(--e062d190)*.9);height:calc(var(--e062d190)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--e062d190)*.1);margin-right:calc(var(--e062d190)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-494acfe7]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-label[data-v-494acfe7]{display:inline-block;width:auto;font-size:calc(var(--e062d190)*.9);border-radius:5px;padding:0 8px}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-494acfe7]{font-size:calc(var(--e062d190)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-494acfe7]{display:block;max-width:calc(var(--e062d190)*19.21);font-size:calc(var(--e062d190)*1);color:#fff;word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-494acfe7],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]{border-radius:calc(var(--e062d190)*.27);padding:calc(var(--e062d190)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-494acfe7]{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-494acfe7]{max-width:calc(var(--e062d190)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]{margin-bottom:15px;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--e062d190)*.57) 0 #d4d9ff}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]:before{border-top:calc(var(--e062d190)*.25) solid transparent;border-bottom:calc(var(--e062d190)*.25) solid transparent;border-right:calc(var(--e062d190)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--e062d190)*-.46));left:0;top:calc(var(--e062d190)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-494acfe7]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--e062d190)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-494acfe7]:before{border-right:calc(var(--e062d190)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-494acfe7]:after{border-top:calc(var(--e062d190)*.25) solid transparent;border-bottom:calc(var(--e062d190)*.25) solid transparent;border-right:calc(var(--e062d190)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--e062d190)*-.46));left:0;top:calc(var(--e062d190)*.48)}.inputContainer[data-v-494acfe7]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--e062d190)*.57)}.inputContainer .inputBox[data-v-494acfe7]{margin:4px;flex:1;height:calc(var(--e062d190)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--e062d190)*.57);font-size:calc(var(--e062d190)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-494acfe7]{margin-right:20px;flex-shrink:0}", ""]);
|
|
182
182
|
// Exports
|
|
183
183
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
184
184
|
|
|
@@ -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-40.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-40.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=494acfe7&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; }
|
|
@@ -1075,7 +1075,7 @@ var staticRenderFns = [function () {
|
|
|
1075
1075
|
}, [_c('span', [_vm._v("Hi,我是小安,有问题,尽管问。")])]);
|
|
1076
1076
|
}];
|
|
1077
1077
|
|
|
1078
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
1078
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=494acfe7&scoped=true
|
|
1079
1079
|
|
|
1080
1080
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
1081
1081
|
var cryptojs = __webpack_require__(672);
|
|
@@ -6091,7 +6091,7 @@ var Tx = /*#__PURE__*/function () {
|
|
|
6091
6091
|
return Tx_createClass(Tx, null, [{
|
|
6092
6092
|
key: "TextToVoice",
|
|
6093
6093
|
value: function TextToVoice(text) {
|
|
6094
|
-
return gridRequest.post("/dxwh/gateway/TextToVoice", {
|
|
6094
|
+
return gridRequest.post("http://10.99.16.155:8995/dxwh/gateway/TextToVoice", {
|
|
6095
6095
|
Action: 'TextToVoice',
|
|
6096
6096
|
Text: text,
|
|
6097
6097
|
SessionId: 'session-1234',
|
|
@@ -16922,6 +16922,31 @@ var DragBubble = {
|
|
|
16922
16922
|
}
|
|
16923
16923
|
};
|
|
16924
16924
|
/* harmony default export */ var dragBubble = ((/* unused pure expression or super */ null && (DragBubble)));
|
|
16925
|
+
;// ./node_modules/mitt/dist/mitt.mjs
|
|
16926
|
+
/* harmony default export */ function mitt(n) {
|
|
16927
|
+
return {
|
|
16928
|
+
all: n = n || new Map(),
|
|
16929
|
+
on: function on(t, e) {
|
|
16930
|
+
var i = n.get(t);
|
|
16931
|
+
i ? i.push(e) : n.set(t, [e]);
|
|
16932
|
+
},
|
|
16933
|
+
off: function off(t, e) {
|
|
16934
|
+
var i = n.get(t);
|
|
16935
|
+
i && (e ? i.splice(i.indexOf(e) >>> 0, 1) : n.set(t, []));
|
|
16936
|
+
},
|
|
16937
|
+
emit: function emit(t, e) {
|
|
16938
|
+
var i = n.get(t);
|
|
16939
|
+
i && i.slice().map(function (n) {
|
|
16940
|
+
n(e);
|
|
16941
|
+
}), (i = n.get("*")) && i.slice().map(function (n) {
|
|
16942
|
+
n(t, e);
|
|
16943
|
+
});
|
|
16944
|
+
}
|
|
16945
|
+
};
|
|
16946
|
+
}
|
|
16947
|
+
;// ./package/SpeechRecognition/utils/bus.js
|
|
16948
|
+
|
|
16949
|
+
var bus = mitt();
|
|
16925
16950
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
16926
16951
|
function SpeechRecognitionvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return SpeechRecognitionvue_type_script_lang_js_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; }, SpeechRecognitionvue_type_script_lang_js_typeof(o); }
|
|
16927
16952
|
function SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == SpeechRecognitionvue_type_script_lang_js_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(SpeechRecognitionvue_type_script_lang_js_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
@@ -16940,6 +16965,7 @@ function SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, r) { if ("objec
|
|
|
16940
16965
|
|
|
16941
16966
|
|
|
16942
16967
|
|
|
16968
|
+
|
|
16943
16969
|
var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
16944
16970
|
name: "yx-speech-recognition",
|
|
16945
16971
|
directives: {
|
|
@@ -17090,7 +17116,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17090
17116
|
}
|
|
17091
17117
|
this.endTimeOut = setTimeout(function () {
|
|
17092
17118
|
_this.autoQuitAssistant();
|
|
17093
|
-
}, 1000 *
|
|
17119
|
+
}, 1000 * 40);
|
|
17094
17120
|
}
|
|
17095
17121
|
},
|
|
17096
17122
|
boxPosition: {
|
|
@@ -17216,7 +17242,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17216
17242
|
updateSession: function updateSession(opt) {
|
|
17217
17243
|
var _this3 = this;
|
|
17218
17244
|
return SpeechRecognitionvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
17219
|
-
var messages, res, type, content, back_list, recommand_list, _messages$showNextPag2, showNextPage, _messages$showPrevPag2, showPrevPage, _messages, voice_id, session_id, sentenceId, formData, _res, code, msg, obj, _content, standard_back, command_type, _opts, _error$message, _error$message2;
|
|
17245
|
+
var messages, res, type, content, back_list, recommand_list, _messages$showNextPag2, showNextPage, _messages$showPrevPag2, showPrevPage, _messages, voice_id, session_id, sentenceId, formData, resp, _res, code, msg, obj, _content, standard_back, command_type, _opts, _error$message, _error$message2;
|
|
17220
17246
|
return SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17221
17247
|
while (1) switch (_context.prev = _context.next) {
|
|
17222
17248
|
case 0:
|
|
@@ -17242,7 +17268,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17242
17268
|
_this3.bubbleBoxType = type;
|
|
17243
17269
|
_this3.bubbleBoxTitle = content;
|
|
17244
17270
|
if (!(type === "TO" && res.result.slice_type === 2)) {
|
|
17245
|
-
_context.next =
|
|
17271
|
+
_context.next = 62;
|
|
17246
17272
|
break;
|
|
17247
17273
|
}
|
|
17248
17274
|
_this3.getSystem();
|
|
@@ -17255,37 +17281,60 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17255
17281
|
voice_id: voice_id,
|
|
17256
17282
|
webSocketId: _this3.webSocketId,
|
|
17257
17283
|
sentence_id: sentenceId,
|
|
17258
|
-
client_id: _this3.clientId
|
|
17284
|
+
client_id: _this3.clientId,
|
|
17285
|
+
eventStatus: {}
|
|
17259
17286
|
};
|
|
17260
17287
|
_this3.oneQuestionOneAnswer = false;
|
|
17261
|
-
|
|
17262
|
-
|
|
17288
|
+
// 获取iot面板打开状态 、cim底座状态不用获取
|
|
17289
|
+
if (!(_this3.systemId != 'cimapp-iot')) {
|
|
17290
|
+
_context.next = 29;
|
|
17291
|
+
break;
|
|
17292
|
+
}
|
|
17293
|
+
_context.prev = 17;
|
|
17294
|
+
_this3.getCurrentStatus();
|
|
17295
|
+
_context.next = 21;
|
|
17296
|
+
return _this3.waitGetEventStatus();
|
|
17297
|
+
case 21:
|
|
17298
|
+
resp = _context.sent;
|
|
17299
|
+
console.log("获取的状态:", resp);
|
|
17300
|
+
if (resp) {
|
|
17301
|
+
formData.eventStatus = resp;
|
|
17302
|
+
}
|
|
17303
|
+
_context.next = 29;
|
|
17304
|
+
break;
|
|
17305
|
+
case 26:
|
|
17306
|
+
_context.prev = 26;
|
|
17307
|
+
_context.t0 = _context["catch"](17);
|
|
17308
|
+
console.log("获取当前状态异常", _context.t0);
|
|
17309
|
+
case 29:
|
|
17310
|
+
_context.prev = 29;
|
|
17311
|
+
_context.next = 32;
|
|
17263
17312
|
return Tx.speech2speech2(formData);
|
|
17264
|
-
case
|
|
17313
|
+
case 32:
|
|
17265
17314
|
_res = _context.sent;
|
|
17266
17315
|
code = _res.code, msg = _res.msg, obj = _res.obj;
|
|
17267
17316
|
if (!(code == 200)) {
|
|
17268
|
-
_context.next =
|
|
17317
|
+
_context.next = 49;
|
|
17269
17318
|
break;
|
|
17270
17319
|
}
|
|
17271
17320
|
_content = "";
|
|
17272
17321
|
standard_back = obj.standard_back, command_type = obj.command_type;
|
|
17273
17322
|
if (!(Object.keys(obj).length > 0)) {
|
|
17274
|
-
_context.next =
|
|
17323
|
+
_context.next = 43;
|
|
17275
17324
|
break;
|
|
17276
17325
|
}
|
|
17277
17326
|
_content = standard_back || "抱歉,我还在学习中";
|
|
17278
17327
|
if (!(command_type === "地理实体页面定位" && _content != "抱歉,我还在学习中")) {
|
|
17279
|
-
_context.next =
|
|
17328
|
+
_context.next = 41;
|
|
17280
17329
|
break;
|
|
17281
17330
|
}
|
|
17282
17331
|
return _context.abrupt("return");
|
|
17283
|
-
case
|
|
17284
|
-
_context.next =
|
|
17332
|
+
case 41:
|
|
17333
|
+
_context.next = 44;
|
|
17285
17334
|
break;
|
|
17286
|
-
case
|
|
17335
|
+
case 43:
|
|
17287
17336
|
_content = "抱歉,我还在学习中";
|
|
17288
|
-
case
|
|
17337
|
+
case 44:
|
|
17289
17338
|
_this3.voiecContent = obj;
|
|
17290
17339
|
_opts = {
|
|
17291
17340
|
res: {},
|
|
@@ -17307,9 +17356,9 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17307
17356
|
// messages: { type: "FROM", content: _content },
|
|
17308
17357
|
// sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
17309
17358
|
// });
|
|
17310
|
-
_context.next =
|
|
17359
|
+
_context.next = 50;
|
|
17311
17360
|
break;
|
|
17312
|
-
case
|
|
17361
|
+
case 49:
|
|
17313
17362
|
if (code === 504) {
|
|
17314
17363
|
_this3.timeOutContent();
|
|
17315
17364
|
} else if (code === 300) {
|
|
@@ -17318,40 +17367,40 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17318
17367
|
// this.timeOutContent()
|
|
17319
17368
|
// this.startWaitAnswer()
|
|
17320
17369
|
}
|
|
17321
|
-
case
|
|
17322
|
-
_context.next =
|
|
17370
|
+
case 50:
|
|
17371
|
+
_context.next = 58;
|
|
17323
17372
|
break;
|
|
17324
|
-
case
|
|
17325
|
-
_context.prev =
|
|
17326
|
-
_context.
|
|
17327
|
-
console.log("speech2speech2 ->", _context.
|
|
17328
|
-
console.log(_context.
|
|
17329
|
-
console.log(_context.
|
|
17330
|
-
if (_context.
|
|
17373
|
+
case 52:
|
|
17374
|
+
_context.prev = 52;
|
|
17375
|
+
_context.t1 = _context["catch"](29);
|
|
17376
|
+
console.log("speech2speech2 ->", _context.t1);
|
|
17377
|
+
console.log(_context.t1.message);
|
|
17378
|
+
console.log(_context.t1 === null || _context.t1 === void 0 || (_error$message = _context.t1.message) === null || _error$message === void 0 ? void 0 : _error$message.includes("timeout"));
|
|
17379
|
+
if (_context.t1 !== null && _context.t1 !== void 0 && (_error$message2 = _context.t1.message) !== null && _error$message2 !== void 0 && _error$message2.includes('timeout')) {
|
|
17331
17380
|
_this3.waitSentenceId = formData.sentence_id;
|
|
17332
17381
|
_this3.timeOutContent();
|
|
17333
17382
|
} else {
|
|
17334
17383
|
_this3.oneQuestionOneAnswer = true;
|
|
17335
17384
|
}
|
|
17336
|
-
case
|
|
17337
|
-
_context.prev =
|
|
17338
|
-
return _context.finish(
|
|
17339
|
-
case
|
|
17340
|
-
_context.next =
|
|
17385
|
+
case 58:
|
|
17386
|
+
_context.prev = 58;
|
|
17387
|
+
return _context.finish(58);
|
|
17388
|
+
case 60:
|
|
17389
|
+
_context.next = 63;
|
|
17341
17390
|
break;
|
|
17342
|
-
case
|
|
17391
|
+
case 62:
|
|
17343
17392
|
if (type === "FROM") {
|
|
17344
17393
|
_this3.handlePlayTTS({
|
|
17345
17394
|
content: content
|
|
17346
17395
|
});
|
|
17347
17396
|
}
|
|
17348
|
-
case
|
|
17397
|
+
case 63:
|
|
17349
17398
|
_this3.wakeUpTime = new Date().getTime();
|
|
17350
|
-
case
|
|
17399
|
+
case 64:
|
|
17351
17400
|
case "end":
|
|
17352
17401
|
return _context.stop();
|
|
17353
17402
|
}
|
|
17354
|
-
}, _callee, null, [[
|
|
17403
|
+
}, _callee, null, [[17, 26], [29, 52, 58, 60]]);
|
|
17355
17404
|
}))();
|
|
17356
17405
|
},
|
|
17357
17406
|
timeOutContent: function timeOutContent() {
|
|
@@ -17410,6 +17459,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17410
17459
|
_this6.exitAide();
|
|
17411
17460
|
_this6.bubbleBoxTitle = "";
|
|
17412
17461
|
_this6.bubbleBoxType = "";
|
|
17462
|
+
_this6.messagesList = [];
|
|
17413
17463
|
}, 1000);
|
|
17414
17464
|
}
|
|
17415
17465
|
});
|
|
@@ -17420,6 +17470,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17420
17470
|
this.bubbleBoxTitle = "";
|
|
17421
17471
|
this.bubbleBoxType = "";
|
|
17422
17472
|
this.updateSessionId();
|
|
17473
|
+
this.messagesList = [];
|
|
17423
17474
|
// this.onStop()
|
|
17424
17475
|
},
|
|
17425
17476
|
// 语音播放
|
|
@@ -17788,14 +17839,44 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17788
17839
|
},
|
|
17789
17840
|
sendMessage: function sendMessage(data) {
|
|
17790
17841
|
this.getSystem();
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
|
|
17794
|
-
|
|
17795
|
-
|
|
17842
|
+
if (data !== null && data !== void 0 && data.isEventStatus) {
|
|
17843
|
+
console.log("回传当前事件状态");
|
|
17844
|
+
bus.emit('callBackStatus', data.data);
|
|
17845
|
+
} else {
|
|
17846
|
+
var query = {
|
|
17847
|
+
type: "response",
|
|
17848
|
+
session_id: this.sessionId,
|
|
17849
|
+
data: data,
|
|
17850
|
+
appId: this.appId
|
|
17851
|
+
};
|
|
17852
|
+
console.log("回传信息:\n", data, query);
|
|
17853
|
+
this.socket.send(JSON.stringify(query));
|
|
17854
|
+
}
|
|
17855
|
+
},
|
|
17856
|
+
getCurrentStatus: function getCurrentStatus() {
|
|
17857
|
+
this.voiecContent = {
|
|
17858
|
+
app_type: "comman_naving",
|
|
17859
|
+
client_id: this.clientId,
|
|
17860
|
+
obj: {
|
|
17861
|
+
cim: "cimapp-iot",
|
|
17862
|
+
par: {},
|
|
17863
|
+
eventStatus: true
|
|
17864
|
+
}
|
|
17796
17865
|
};
|
|
17797
|
-
|
|
17798
|
-
|
|
17866
|
+
},
|
|
17867
|
+
waitGetEventStatus: function waitGetEventStatus() {
|
|
17868
|
+
return new Promise(function (resolve, reject) {
|
|
17869
|
+
var _handler = function handler(info) {
|
|
17870
|
+
bus.off('callBackStatus', _handler);
|
|
17871
|
+
clearTimeout(timeOutId);
|
|
17872
|
+
resolve(info);
|
|
17873
|
+
};
|
|
17874
|
+
bus.on('callBackStatus', _handler);
|
|
17875
|
+
var timeOutId = setTimeout(function () {
|
|
17876
|
+
bus.off('callBackStatus', _handler);
|
|
17877
|
+
reject(new Error('等待父组件调用超时'));
|
|
17878
|
+
}, 5 * 1000);
|
|
17879
|
+
});
|
|
17799
17880
|
},
|
|
17800
17881
|
submitText: function submitText() {
|
|
17801
17882
|
if (!this.inputContent || !this.oneQuestionOneAnswer) return;
|
|
@@ -17920,7 +18001,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17920
18001
|
var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
17921
18002
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
17922
18003
|
return {
|
|
17923
|
-
"
|
|
18004
|
+
"e062d190": _vm.htmlFontSize
|
|
17924
18005
|
};
|
|
17925
18006
|
});
|
|
17926
18007
|
};
|
|
@@ -17932,9 +18013,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
|
|
|
17932
18013
|
/* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
|
|
17933
18014
|
;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
17934
18015
|
/* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
|
|
17935
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17936
|
-
var
|
|
17937
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
18016
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=494acfe7&prod&lang=scss&scoped=true
|
|
18017
|
+
var SpeechRecognitionvue_type_style_index_0_id_494acfe7_prod_lang_scss_scoped_true = __webpack_require__(266);
|
|
18018
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=494acfe7&prod&lang=scss&scoped=true
|
|
17938
18019
|
|
|
17939
18020
|
;// ./package/SpeechRecognition/index.vue
|
|
17940
18021
|
|
|
@@ -17951,7 +18032,7 @@ var SpeechRecognition_component = normalizeComponent(
|
|
|
17951
18032
|
staticRenderFns,
|
|
17952
18033
|
false,
|
|
17953
18034
|
null,
|
|
17954
|
-
"
|
|
18035
|
+
"494acfe7",
|
|
17955
18036
|
null
|
|
17956
18037
|
|
|
17957
18038
|
)
|