yxspeechrecognition 1.5.2 → 1.5.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 +39 -39
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +58 -58
- 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,22 +11,6 @@
|
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/ 221:
|
|
15
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
16
|
-
|
|
17
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
18
|
-
|
|
19
|
-
// load the styles
|
|
20
|
-
var content = __webpack_require__(840);
|
|
21
|
-
if(content.__esModule) content = content.default;
|
|
22
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
23
|
-
if(content.locals) module.exports = content.locals;
|
|
24
|
-
// add the styles to the DOM
|
|
25
|
-
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
26
|
-
var update = add("7b07aeee", content, true, {"sourceMap":false,"shadowMode":false});
|
|
27
|
-
|
|
28
|
-
/***/ }),
|
|
29
|
-
|
|
30
14
|
/***/ 274:
|
|
31
15
|
/***/ (function(module) {
|
|
32
16
|
|
|
@@ -135,6 +119,22 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADy
|
|
|
135
119
|
|
|
136
120
|
/***/ }),
|
|
137
121
|
|
|
122
|
+
/***/ 447:
|
|
123
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
124
|
+
|
|
125
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
126
|
+
|
|
127
|
+
// load the styles
|
|
128
|
+
var content = __webpack_require__(913);
|
|
129
|
+
if(content.__esModule) content = content.default;
|
|
130
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
131
|
+
if(content.locals) module.exports = content.locals;
|
|
132
|
+
// add the styles to the DOM
|
|
133
|
+
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
134
|
+
var update = add("7a9673fa", content, true, {"sourceMap":false,"shadowMode":false});
|
|
135
|
+
|
|
136
|
+
/***/ }),
|
|
137
|
+
|
|
138
138
|
/***/ 459:
|
|
139
139
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
140
140
|
|
|
@@ -753,7 +753,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAMAAABG
|
|
|
753
753
|
|
|
754
754
|
/***/ }),
|
|
755
755
|
|
|
756
|
-
/***/
|
|
756
|
+
/***/ 913:
|
|
757
757
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
758
758
|
|
|
759
759
|
"use strict";
|
|
@@ -767,7 +767,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
767
767
|
|
|
768
768
|
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()));
|
|
769
769
|
// Module
|
|
770
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-
|
|
770
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-5dc44cde]{position:absolute;right:calc(var(--6e4ebd61)*81.43);top:calc(var(--6e4ebd61)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-5dc44cde] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-5dc44cde]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--6e4ebd61)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-5dc44cde]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--6e4ebd61)*2.29);padding:0 calc(var(--6e4ebd61)*.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(--6e4ebd61)*.57) calc(var(--6e4ebd61)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-5dc44cde]{display:flex;align-items:center;gap:calc(var(--6e4ebd61)*.38)}.yx-speech-recognition .box .title-icon img[data-v-5dc44cde]{width:calc(var(--6e4ebd61)*1);height:calc(var(--6e4ebd61)*1)}.yx-speech-recognition .box .title-icon span[data-v-5dc44cde]{font-size:calc(var(--6e4ebd61)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-5dc44cde]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-5dc44cde]{width:calc(var(--6e4ebd61)*1.1)}.yx-speech-recognition .box .content[data-v-5dc44cde]{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-5dc44cde]{margin-top:calc(var(--6e4ebd61)*7.5);font-size:calc(var(--6e4ebd61)*1)}.yx-speech-recognition .box .message-list[data-v-5dc44cde]{overflow:hidden;padding:calc(var(--6e4ebd61)*.58);box-sizing:border-box;padding-right:calc(var(--6e4ebd61)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-5dc44cde]{height:100%;display:flex;flex-direction:column;gap:calc(var(--6e4ebd61)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-5dc44cde]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-5dc44cde]{width:calc(var(--6e4ebd61)*3.76);height:calc(var(--6e4ebd61)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-5dc44cde]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-5dc44cde]{position:absolute;top:0;left:calc(var(--6e4ebd61)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-5dc44cde]{display:block;max-width:calc(var(--6e4ebd61)*19.21);font-size:calc(var(--6e4ebd61)*1);color:#fff;padding:calc(var(--6e4ebd61)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-5dc44cde]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--6e4ebd61)*.57) 0 #d4d9ff;border-radius:calc(var(--6e4ebd61)*.27);margin-left:calc(var(--6e4ebd61)*.49);word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-5dc44cde]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-5dc44cde]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-5dc44cde]:before{border-top:calc(var(--6e4ebd61)*.25) solid transparent;border-bottom:calc(var(--6e4ebd61)*.25) solid transparent;border-right:calc(var(--6e4ebd61)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--6e4ebd61)*-.46));left:0;top:calc(var(--6e4ebd61)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-5dc44cde]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--6e4ebd61)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-5dc44cde]:before{border-right:calc(var(--6e4ebd61)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-5dc44cde]:after{border-top:calc(var(--6e4ebd61)*.25) solid transparent;border-bottom:calc(var(--6e4ebd61)*.25) solid transparent;border-right:calc(var(--6e4ebd61)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--6e4ebd61)*-.46));left:0;top:calc(var(--6e4ebd61)*.48)}.inputContainer[data-v-5dc44cde]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--6e4ebd61)*.57)}.inputContainer .inputBox[data-v-5dc44cde]{margin:4px;flex:1;height:calc(var(--6e4ebd61)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--6e4ebd61)*.57);font-size:calc(var(--6e4ebd61)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-5dc44cde]{margin-right:20px;flex-shrink:0}", ""]);
|
|
771
771
|
// Exports
|
|
772
772
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
773
773
|
|
|
@@ -888,7 +888,7 @@ if (typeof window !== 'undefined') {
|
|
|
888
888
|
// Indicate to webpack that this file can be concatenated
|
|
889
889
|
/* harmony default export */ var setPublicPath = (null);
|
|
890
890
|
|
|
891
|
-
;// ./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=
|
|
891
|
+
;// ./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=5dc44cde&scoped=true
|
|
892
892
|
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); }
|
|
893
893
|
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; }
|
|
894
894
|
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; }
|
|
@@ -960,7 +960,17 @@ var render = function render() {
|
|
|
960
960
|
_vm.inputContent = $event.target.value;
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
}),
|
|
963
|
+
}), _c('div', {
|
|
964
|
+
staticClass: "inputButton",
|
|
965
|
+
on: {
|
|
966
|
+
"click": _vm.submitText
|
|
967
|
+
}
|
|
968
|
+
}, [_c('img', {
|
|
969
|
+
attrs: {
|
|
970
|
+
"src": __webpack_require__(462),
|
|
971
|
+
"alt": ""
|
|
972
|
+
}
|
|
973
|
+
})])])]) : _vm._e(), _c('div', {
|
|
964
974
|
staticClass: "displayAssistant",
|
|
965
975
|
style: _vm.imgPosition
|
|
966
976
|
}, [_c('div', {
|
|
@@ -993,20 +1003,9 @@ var staticRenderFns = [function () {
|
|
|
993
1003
|
"alt": ""
|
|
994
1004
|
}
|
|
995
1005
|
}), _c('span', [_vm._v("小安助手")])]);
|
|
996
|
-
}, function () {
|
|
997
|
-
var _vm = this,
|
|
998
|
-
_c = _vm._self._c;
|
|
999
|
-
return _c('div', {
|
|
1000
|
-
staticClass: "inputButton"
|
|
1001
|
-
}, [_c('img', {
|
|
1002
|
-
attrs: {
|
|
1003
|
-
"src": __webpack_require__(462),
|
|
1004
|
-
"alt": ""
|
|
1005
|
-
}
|
|
1006
|
-
})]);
|
|
1007
1006
|
}];
|
|
1008
1007
|
|
|
1009
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
1008
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=5dc44cde&scoped=true
|
|
1010
1009
|
|
|
1011
1010
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
1012
1011
|
var cryptojs = __webpack_require__(672);
|
|
@@ -16847,7 +16846,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16847
16846
|
},
|
|
16848
16847
|
wakeUpAide: function wakeUpAide() {
|
|
16849
16848
|
this.boxShow = true;
|
|
16850
|
-
this.messagesList.length = 0;
|
|
16849
|
+
// this.messagesList.length = 0;
|
|
16850
|
+
|
|
16851
16851
|
var content = "我在";
|
|
16852
16852
|
if (this.messagesList.length == 0) {
|
|
16853
16853
|
var slot = getTimeSlot();
|
|
@@ -17302,7 +17302,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17302
17302
|
this.socket.send(JSON.stringify(query));
|
|
17303
17303
|
},
|
|
17304
17304
|
submitText: function submitText() {
|
|
17305
|
-
|
|
17305
|
+
if (!this.inputContent) return;
|
|
17306
17306
|
this.updateSession({
|
|
17307
17307
|
res: {
|
|
17308
17308
|
sessionId: this.sessionId,
|
|
@@ -17330,7 +17330,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17330
17330
|
var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
17331
17331
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
17332
17332
|
return {
|
|
17333
|
-
"
|
|
17333
|
+
"6e4ebd61": _vm.htmlFontSize
|
|
17334
17334
|
};
|
|
17335
17335
|
});
|
|
17336
17336
|
};
|
|
@@ -17342,9 +17342,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
|
|
|
17342
17342
|
/* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
|
|
17343
17343
|
;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
17344
17344
|
/* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
|
|
17345
|
-
// 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=
|
|
17346
|
-
var
|
|
17347
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17345
|
+
// 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=5dc44cde&prod&lang=scss&scoped=true
|
|
17346
|
+
var SpeechRecognitionvue_type_style_index_0_id_5dc44cde_prod_lang_scss_scoped_true = __webpack_require__(447);
|
|
17347
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=5dc44cde&prod&lang=scss&scoped=true
|
|
17348
17348
|
|
|
17349
17349
|
;// ./package/SpeechRecognition/index.vue
|
|
17350
17350
|
|
|
@@ -17361,7 +17361,7 @@ var SpeechRecognition_component = normalizeComponent(
|
|
|
17361
17361
|
staticRenderFns,
|
|
17362
17362
|
false,
|
|
17363
17363
|
null,
|
|
17364
|
-
"
|
|
17364
|
+
"5dc44cde",
|
|
17365
17365
|
null
|
|
17366
17366
|
|
|
17367
17367
|
)
|