yxspeechrecognition 1.4.6 → 1.4.8
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 +70 -64
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +57 -51
- 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
|
@@ -11,27 +11,6 @@
|
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/ 63:
|
|
15
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16
|
-
|
|
17
|
-
"use strict";
|
|
18
|
-
__webpack_require__.r(__webpack_exports__);
|
|
19
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
20
|
-
/* 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__);
|
|
21
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
22
|
-
/* 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__);
|
|
23
|
-
// Imports
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
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()));
|
|
27
|
-
// Module
|
|
28
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-723aa2f2]{position:absolute;right:calc(var(--1812e417)*81.43);top:calc(var(--1812e417)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-723aa2f2] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-723aa2f2]{display:grid;grid-template-rows:max-content 1fr;position:absolute;left:calc(var(--1812e417)*81.38);top:calc(var(--1812e417)*17.43);pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--1812e417)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-723aa2f2]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--1812e417)*2.29);padding:0 calc(var(--1812e417)*.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(--1812e417)*.57) calc(var(--1812e417)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-723aa2f2]{display:flex;align-items:center;gap:calc(var(--1812e417)*.38)}.yx-speech-recognition .box .title-icon img[data-v-723aa2f2]{width:calc(var(--1812e417)*1);height:calc(var(--1812e417)*1)}.yx-speech-recognition .box .title-icon span[data-v-723aa2f2]{font-size:calc(var(--1812e417)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-723aa2f2]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-723aa2f2]{width:calc(var(--1812e417)*1.1)}.yx-speech-recognition .box .content[data-v-723aa2f2]{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-723aa2f2]{margin-top:calc(var(--1812e417)*7.5);font-size:calc(var(--1812e417)*1)}.yx-speech-recognition .box .message-list[data-v-723aa2f2]{overflow:hidden;padding:calc(var(--1812e417)*.58);box-sizing:border-box;padding-right:calc(var(--1812e417)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-723aa2f2]{height:100%;display:flex;flex-direction:column;gap:calc(var(--1812e417)*.53);overflow-y:overlay}.yx-speech-recognition .displayAssistant[data-v-723aa2f2]{position:absolute;right:calc(var(--1812e417)*74.17);top:calc(var(--1812e417)*3.19);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-723aa2f2]{width:calc(var(--1812e417)*3.76);height:calc(var(--1812e417)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-723aa2f2]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-723aa2f2]{position:absolute;top:0;left:calc(var(--1812e417)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-723aa2f2]{display:block;max-width:calc(var(--1812e417)*19.21);font-size:calc(var(--1812e417)*1);color:#fff;padding:calc(var(--1812e417)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--1812e417)*.57) 0 #d4d9ff;border-radius:calc(var(--1812e417)*.27);margin-left:calc(var(--1812e417)*.49);word-break:break-all}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:before{border-top:calc(var(--1812e417)*.25) solid transparent;border-bottom:calc(var(--1812e417)*.25) solid transparent;border-right:calc(var(--1812e417)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--1812e417)*-.46));left:0;top:calc(var(--1812e417)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--1812e417)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]:before{border-right:calc(var(--1812e417)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]:after{border-top:calc(var(--1812e417)*.25) solid transparent;border-bottom:calc(var(--1812e417)*.25) solid transparent;border-right:calc(var(--1812e417)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--1812e417)*-.46));left:0;top:calc(var(--1812e417)*.48)}", ""]);
|
|
29
|
-
// Exports
|
|
30
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/***/ }),
|
|
34
|
-
|
|
35
14
|
/***/ 274:
|
|
36
15
|
/***/ (function(module) {
|
|
37
16
|
|
|
@@ -443,6 +422,27 @@ if(content.locals) module.exports = content.locals;
|
|
|
443
422
|
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
444
423
|
var update = add("1238a4a7", content, true, {"sourceMap":false,"shadowMode":false});
|
|
445
424
|
|
|
425
|
+
/***/ }),
|
|
426
|
+
|
|
427
|
+
/***/ 582:
|
|
428
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
429
|
+
|
|
430
|
+
"use strict";
|
|
431
|
+
__webpack_require__.r(__webpack_exports__);
|
|
432
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
433
|
+
/* 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__);
|
|
434
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
435
|
+
/* 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__);
|
|
436
|
+
// Imports
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
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()));
|
|
440
|
+
// Module
|
|
441
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-cec80596]{position:absolute;right:calc(var(--909d04ac)*81.43);top:calc(var(--909d04ac)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-cec80596] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-cec80596]{display:grid;grid-template-rows:max-content 1fr;position:absolute;left:calc(var(--909d04ac)*81.38);top:calc(var(--909d04ac)*17.43);pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--909d04ac)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-cec80596]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--909d04ac)*2.29);padding:0 calc(var(--909d04ac)*.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(--909d04ac)*.57) calc(var(--909d04ac)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-cec80596]{display:flex;align-items:center;gap:calc(var(--909d04ac)*.38)}.yx-speech-recognition .box .title-icon img[data-v-cec80596]{width:calc(var(--909d04ac)*1);height:calc(var(--909d04ac)*1)}.yx-speech-recognition .box .title-icon span[data-v-cec80596]{font-size:calc(var(--909d04ac)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-cec80596]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-cec80596]{width:calc(var(--909d04ac)*1.1)}.yx-speech-recognition .box .content[data-v-cec80596]{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-cec80596]{margin-top:calc(var(--909d04ac)*7.5);font-size:calc(var(--909d04ac)*1)}.yx-speech-recognition .box .message-list[data-v-cec80596]{overflow:hidden;padding:calc(var(--909d04ac)*.58);box-sizing:border-box;padding-right:calc(var(--909d04ac)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-cec80596]{height:100%;display:flex;flex-direction:column;gap:calc(var(--909d04ac)*.53);overflow-y:overlay}.yx-speech-recognition .displayAssistant[data-v-cec80596]{position:absolute;right:calc(var(--909d04ac)*74.17);top:calc(var(--909d04ac)*3.19);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-cec80596]{width:calc(var(--909d04ac)*3.76);height:calc(var(--909d04ac)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-cec80596]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-cec80596]{position:absolute;top:0;left:calc(var(--909d04ac)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-cec80596]{display:block;max-width:calc(var(--909d04ac)*19.21);font-size:calc(var(--909d04ac)*1);color:#fff;padding:calc(var(--909d04ac)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-cec80596]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--909d04ac)*.57) 0 #d4d9ff;border-radius:calc(var(--909d04ac)*.27);margin-left:calc(var(--909d04ac)*.49);word-break:break-all}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-cec80596]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-cec80596]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-cec80596]:before{border-top:calc(var(--909d04ac)*.25) solid transparent;border-bottom:calc(var(--909d04ac)*.25) solid transparent;border-right:calc(var(--909d04ac)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--909d04ac)*-.46));left:0;top:calc(var(--909d04ac)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-cec80596]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--909d04ac)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-cec80596]:before{border-right:calc(var(--909d04ac)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-cec80596]:after{border-top:calc(var(--909d04ac)*.25) solid transparent;border-bottom:calc(var(--909d04ac)*.25) solid transparent;border-right:calc(var(--909d04ac)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--909d04ac)*-.46));left:0;top:calc(var(--909d04ac)*.48)}", ""]);
|
|
442
|
+
// Exports
|
|
443
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
444
|
+
|
|
445
|
+
|
|
446
446
|
/***/ }),
|
|
447
447
|
|
|
448
448
|
/***/ 601:
|
|
@@ -734,6 +734,22 @@ window && (window.CryptoJSTest = CryptoJS);
|
|
|
734
734
|
|
|
735
735
|
/***/ }),
|
|
736
736
|
|
|
737
|
+
/***/ 712:
|
|
738
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
739
|
+
|
|
740
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
741
|
+
|
|
742
|
+
// load the styles
|
|
743
|
+
var content = __webpack_require__(582);
|
|
744
|
+
if(content.__esModule) content = content.default;
|
|
745
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
746
|
+
if(content.locals) module.exports = content.locals;
|
|
747
|
+
// add the styles to the DOM
|
|
748
|
+
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
749
|
+
var update = add("2c674bd1", content, true, {"sourceMap":false,"shadowMode":false});
|
|
750
|
+
|
|
751
|
+
/***/ }),
|
|
752
|
+
|
|
737
753
|
/***/ 780:
|
|
738
754
|
/***/ (function(module) {
|
|
739
755
|
|
|
@@ -748,22 +764,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABX
|
|
|
748
764
|
"use strict";
|
|
749
765
|
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/f9d6otZynNPo2dKwvtJtmdJsmNI5etJWjNFoltBLg8pfnsczcsTz18LRyMIhZbzy0bZyqLPhyLFSlqjfxadUlqPOsZeEg4R9e3iiiXGSgW9sZFppX1O71v6awv681vquzvqixffD2PWDtfXv8PSryvOgwe690Optp+rc3OJ/qeHz6uDy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KQhaZpq6YqLAYwr3xbUVq4LGmIjdLvlowf3GtO8E9Y2fSagDzahd/DX69atSrNlmhfzhmNmO3kaSN0S3A1/F3SbGQf4wZxKHzwrrPUJPBfkntNXMOjsoEylm5P/iZk6+DRM4M0g+Ip2AIEyE/XkP16ucIzqg3bHcK9uAph/Rsepwx11aOUKc4Eld0kjw9a+JT3hLVe6lnKRAgtWEuorVclp4AvhiWllMfShJSG8iNU1pyzVAraFN4OeGApdAnNdaBHLXHbLGckIQWKZL8ATF8VhmTGSYy67mQuFncPzWcBxe8lz7gmYuKz54U4oFP5baTNxYGw2o+K9q+VXw2NP8ezYQKIobf5/xVi1fLw/WD7e/7fl4z8i0wTTxNNsyQAAAABJRU5ErkJggg==";
|
|
750
766
|
|
|
751
|
-
/***/ }),
|
|
752
|
-
|
|
753
|
-
/***/ 973:
|
|
754
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
755
|
-
|
|
756
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
757
|
-
|
|
758
|
-
// load the styles
|
|
759
|
-
var content = __webpack_require__(63);
|
|
760
|
-
if(content.__esModule) content = content.default;
|
|
761
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
762
|
-
if(content.locals) module.exports = content.locals;
|
|
763
|
-
// add the styles to the DOM
|
|
764
|
-
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
765
|
-
var update = add("074f7e04", content, true, {"sourceMap":false,"shadowMode":false});
|
|
766
|
-
|
|
767
767
|
/***/ })
|
|
768
768
|
|
|
769
769
|
/******/ });
|
|
@@ -880,7 +880,7 @@ if (typeof window !== 'undefined') {
|
|
|
880
880
|
// Indicate to webpack that this file can be concatenated
|
|
881
881
|
/* harmony default export */ var setPublicPath = (null);
|
|
882
882
|
|
|
883
|
-
;// ./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=
|
|
883
|
+
;// ./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=cec80596&scoped=true
|
|
884
884
|
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); }
|
|
885
885
|
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; }
|
|
886
886
|
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; }
|
|
@@ -957,7 +957,7 @@ var staticRenderFns = [function () {
|
|
|
957
957
|
}), _c('span', [_vm._v("小安助手")])]);
|
|
958
958
|
}];
|
|
959
959
|
|
|
960
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
960
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=cec80596&scoped=true
|
|
961
961
|
|
|
962
962
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
963
963
|
var cryptojs = __webpack_require__(672);
|
|
@@ -16590,6 +16590,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16590
16590
|
sessionId: guid(),
|
|
16591
16591
|
wasr: undefined,
|
|
16592
16592
|
setIntervalWebsocket: null,
|
|
16593
|
+
socket: null,
|
|
16593
16594
|
eventCode: [
|
|
16594
16595
|
// 跳转的指令
|
|
16595
16596
|
"clearScreen",
|
|
@@ -16605,7 +16606,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16605
16606
|
"linkCameraHighLow",
|
|
16606
16607
|
// 联动高低空镜头
|
|
16607
16608
|
"openTrafficCond" // 打开周边路况
|
|
16608
|
-
]
|
|
16609
|
+
],
|
|
16610
|
+
selfCode: ["generateEventReport"] // 生成事件报告
|
|
16609
16611
|
};
|
|
16610
16612
|
},
|
|
16611
16613
|
computed: {
|
|
@@ -16623,7 +16625,6 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16623
16625
|
voiecContent: function voiecContent(val) {
|
|
16624
16626
|
console.log("===============getContent==============", val);
|
|
16625
16627
|
if (Object.keys(val).length > 0) {
|
|
16626
|
-
// console.log("===============getContent1111111==============", val)
|
|
16627
16628
|
this.$emit("getContent", SpeechRecognitionvue_type_script_lang_js_objectSpread({}, val));
|
|
16628
16629
|
}
|
|
16629
16630
|
},
|
|
@@ -16989,41 +16990,41 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16989
16990
|
},
|
|
16990
16991
|
getMessage: function getMessage() {
|
|
16991
16992
|
var _that = this;
|
|
16992
|
-
|
|
16993
|
-
socket.onopen = function (event) {
|
|
16993
|
+
this.socket = new WebSocket("ws://10.99.16.155:8995/speech2speechws/v1/ws/demo-client-".concat(parseInt(Math.random() * Math.pow(10, 9))));
|
|
16994
|
+
this.socket.onopen = function (event) {
|
|
16994
16995
|
console.log("WebSocket 连接已打开");
|
|
16995
|
-
_that.startHeart(
|
|
16996
|
+
_that.startHeart();
|
|
16996
16997
|
};
|
|
16997
|
-
socket.onmessage = function (event) {
|
|
16998
|
+
this.socket.onmessage = function (event) {
|
|
16998
16999
|
_that.disposeMessage(JSON.parse(event.data));
|
|
16999
17000
|
};
|
|
17000
|
-
socket.onerror = function (e) {
|
|
17001
|
+
this.socket.onerror = function (e) {
|
|
17001
17002
|
console.log('链接异常', e);
|
|
17002
17003
|
};
|
|
17003
|
-
socket.onclose = function (e) {
|
|
17004
|
+
this.socket.onclose = function (e) {
|
|
17004
17005
|
console.log("链接关闭了, 重新连接", e);
|
|
17005
17006
|
setTimeout(function () {
|
|
17006
17007
|
_that.getMessage();
|
|
17007
17008
|
}, 2000);
|
|
17008
17009
|
};
|
|
17009
17010
|
},
|
|
17010
|
-
startHeart: function startHeart(
|
|
17011
|
+
startHeart: function startHeart() {
|
|
17011
17012
|
var _this6 = this;
|
|
17012
17013
|
if (this.setIntervalWebsocket) {
|
|
17013
17014
|
clearInterval(setIntervalWebsocket);
|
|
17014
17015
|
this.setIntervalWebsocket = null;
|
|
17015
17016
|
}
|
|
17016
|
-
this.sendPing(
|
|
17017
|
+
this.sendPing();
|
|
17017
17018
|
this.setIntervalWebsocket = setInterval(function () {
|
|
17018
|
-
_this6.sendPing(
|
|
17019
|
+
_this6.sendPing();
|
|
17019
17020
|
}, 60000);
|
|
17020
17021
|
},
|
|
17021
|
-
sendPing: function sendPing(
|
|
17022
|
+
sendPing: function sendPing() {
|
|
17022
17023
|
var heartBeat = {
|
|
17023
17024
|
type: "ping",
|
|
17024
17025
|
timestamp: new Date().getTime()
|
|
17025
17026
|
};
|
|
17026
|
-
|
|
17027
|
+
this.socket.send(JSON.stringify(heartBeat));
|
|
17027
17028
|
},
|
|
17028
17029
|
disposeMessage: function disposeMessage(message) {
|
|
17029
17030
|
var type = message.type,
|
|
@@ -17031,13 +17032,13 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17031
17032
|
if (type === 'broadcast') {
|
|
17032
17033
|
var _data$obj = data === null || data === void 0 ? void 0 : data.obj,
|
|
17033
17034
|
par = _data$obj.par,
|
|
17034
|
-
standard_back = _data$obj.standard_back
|
|
17035
|
+
standard_back = _data$obj.standard_back,
|
|
17036
|
+
request_id = _data$obj.request_id;
|
|
17035
17037
|
var commandName = par === null || par === void 0 ? void 0 : par.command_name;
|
|
17036
|
-
console.log(par, standard_back);
|
|
17037
|
-
if (this.
|
|
17038
|
+
console.log(par, standard_back, request_id);
|
|
17039
|
+
if (!this.selfCode.includes(commandName)) {
|
|
17038
17040
|
//发送指令
|
|
17039
|
-
this.voiecContent =
|
|
17040
|
-
console.log("999999999999999");
|
|
17041
|
+
this.voiecContent = data.obj;
|
|
17041
17042
|
if (standard_back) {
|
|
17042
17043
|
this.openAide();
|
|
17043
17044
|
this.updateSession({
|
|
@@ -17051,20 +17052,25 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17051
17052
|
}
|
|
17052
17053
|
} else {}
|
|
17053
17054
|
}
|
|
17055
|
+
},
|
|
17056
|
+
sendMessage: function sendMessage(data) {
|
|
17057
|
+
var query = {
|
|
17058
|
+
type: "response",
|
|
17059
|
+
data: data
|
|
17060
|
+
};
|
|
17061
|
+
this.socket.send(JSON.stringify(query));
|
|
17054
17062
|
}
|
|
17055
17063
|
},
|
|
17056
17064
|
mounted: function mounted() {
|
|
17057
17065
|
this.onStart();
|
|
17058
17066
|
this.getMessage();
|
|
17059
|
-
// this.openAide()
|
|
17060
|
-
// this.updateSession({ res: {sessionId: "32883291839",voice_id: "8923-dskfas-32431-74932132", sentenceId: "83247038140313", result: {slice_type: 2}}, messages: { type: "TO", content: "觉得覅撒记得" } });
|
|
17061
17067
|
}
|
|
17062
17068
|
};
|
|
17063
17069
|
|
|
17064
17070
|
var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
17065
17071
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
17066
17072
|
return {
|
|
17067
|
-
"
|
|
17073
|
+
"909d04ac": _vm.htmlFontSize
|
|
17068
17074
|
};
|
|
17069
17075
|
});
|
|
17070
17076
|
};
|
|
@@ -17076,9 +17082,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
|
|
|
17076
17082
|
/* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
|
|
17077
17083
|
;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
17078
17084
|
/* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
|
|
17079
|
-
// 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=
|
|
17080
|
-
var
|
|
17081
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17085
|
+
// 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=cec80596&prod&lang=scss&scoped=true
|
|
17086
|
+
var SpeechRecognitionvue_type_style_index_0_id_cec80596_prod_lang_scss_scoped_true = __webpack_require__(712);
|
|
17087
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=cec80596&prod&lang=scss&scoped=true
|
|
17082
17088
|
|
|
17083
17089
|
;// ./package/SpeechRecognition/index.vue
|
|
17084
17090
|
|
|
@@ -17095,7 +17101,7 @@ var SpeechRecognition_component = normalizeComponent(
|
|
|
17095
17101
|
staticRenderFns,
|
|
17096
17102
|
false,
|
|
17097
17103
|
null,
|
|
17098
|
-
"
|
|
17104
|
+
"cec80596",
|
|
17099
17105
|
null
|
|
17100
17106
|
|
|
17101
17107
|
)
|