yxspeechrecognition 1.7.5 → 1.7.7
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 +285 -78
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +277 -70
- 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,6 +19,22 @@ module.exports = "data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy
|
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
+
/***/ 59:
|
|
23
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
24
|
+
|
|
25
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
26
|
+
|
|
27
|
+
// load the styles
|
|
28
|
+
var content = __webpack_require__(321);
|
|
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("3ba1f9e2", content, true, {"sourceMap":false,"shadowMode":false});
|
|
35
|
+
|
|
36
|
+
/***/ }),
|
|
37
|
+
|
|
22
38
|
/***/ 260:
|
|
23
39
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
24
40
|
|
|
@@ -38,22 +54,6 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".message-wrapper[data-v-0b0e737e]{disp
|
|
|
38
54
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
39
55
|
|
|
40
56
|
|
|
41
|
-
/***/ }),
|
|
42
|
-
|
|
43
|
-
/***/ 271:
|
|
44
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
45
|
-
|
|
46
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
47
|
-
|
|
48
|
-
// load the styles
|
|
49
|
-
var content = __webpack_require__(345);
|
|
50
|
-
if(content.__esModule) content = content.default;
|
|
51
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
52
|
-
if(content.locals) module.exports = content.locals;
|
|
53
|
-
// add the styles to the DOM
|
|
54
|
-
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
55
|
-
var update = add("7fc3907a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
56
|
-
|
|
57
57
|
/***/ }),
|
|
58
58
|
|
|
59
59
|
/***/ 274:
|
|
@@ -156,15 +156,7 @@ module.exports = function (cssWithMappingToString) {
|
|
|
156
156
|
|
|
157
157
|
/***/ }),
|
|
158
158
|
|
|
159
|
-
/***/
|
|
160
|
-
/***/ (function(module) {
|
|
161
|
-
|
|
162
|
-
"use strict";
|
|
163
|
-
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAByFBMVEUAAACPyf+z2f+z2v+nzv/R6Pzb7/3j6vjM5f3s9Pyj0v232f/e7Pqm1P7H4v3A4P2y2P6f0P7D4f7F4/7F4/2s1f7J5P+Ryf/V6vzl8fuo1P693v2m0/7s9fu73f7C4f3g8Pzc7fym0//L5f2Uy//s9Pva7Pzj8PvL5f2p1f/o8vu22/7s9fzD4fzP5/3q8/uu1/7Y6/2Wy/+l0v+02f3I4/zr9PrJ5Pyn1P/M5/+z2P7r8/vI4/uVzP+czv/q9f2Syv2p1P/m8fyVyP+o1/+y4f+Wy//M5vydz/7e7fyv1/3e7vyTyf+QyP+q1f6Qyf/G4v242/242/6h0P6Zzf6p0/6u1v6l0v/B4P6y2f6bzv+Vyv7T6PzT6vyQyf+k0v/B4P3I5f2Syf+02f3m8vvm8vvB4P2czv2Px//M5P3P5/2z2/zI4fmQw//Q5/2s1v7M5fyw2P2/3/263f242/222v3T6PzY6/zV6vzB4P2i0f6f0P6dz/7o8/zc7fyZzf+bzv6z2f2k0v7K5Pze7vuUyv+Xy/7G4v3I4/zh7/um0/7D4fyo1P7j8PvZ7Pu93f3l8fuSyf6Syf+93v283v3a7PzD4f2p1f5WYUP6AAAAbnRSTlMA+UoFCC8kB+/tkko1Jfr47uvUsIVjNPz7+/r5+Pjt7Orq5ePY1c/PzLW1sK6smJiTjYyIgYCAXlJKQD8/PjYwMC8uJRYQ+/rz8/Ly7uzo5NzW1dDQzMm9vby7trW0rqadmpiTjYyDg4B8a1sqHqwtFkwAAAHmSURBVDjLjc6FV9tQGAXwy5KmAvVS3N3dYQybu7u7VOZsY1vHNhjMOjr4d3kv0nyhJM0v57y8e993XgIj58RwZ5O7qsrd1Dk84YS56R73EuHumcbuZtuXcrTPIpfzbtnfXZTdy/kNqeWXiRYJBkW1P0zVFhkmD321cITMSnUfLdVJUDmb/zO/c7BS7ZtFKPre5NUHmaP0bV6lDnBXX9twTb40Zgu/tjuWUB6Gd3KI8UibRDcguNTyQCQ61pqgXI8dIw3ZIGByWfUIwELDMjEG4KlPS5MYWlVJYG6t6lzgWrU4hPCKKgqma0XnE8Gc1GIYoXVVWACivs1NvlfWCICRdU0INYuaUOSmf9Hg4v0uPdTA/9wmPyo2Nv6oMhm+194Zhu+08wpUv7CpGqde2nQaHa9s6sBgigg82cMUFirrnRQ1iPEkk0olZZdAeeVOOx+HEEjqDgsgipNEQAB640QxiPP0pJd/Jpu2tuLH58mlcWoGTNtP4twCVKPltG8D561cI+pHwc171qjyGcgGvhjU3xjwXKg0dh4oxOC7PM6IUHneWwt6oXnwwdLBvci6/NlKkExOfbJydg5ZYuN3c/v7Rej6v5m7sg/EXEk6/Y9Jy/heS0dvs0Hq2YmCnUoKjjVefzglwGAbp2FhRMz/ntsAAAAASUVORK5CYII=";
|
|
164
|
-
|
|
165
|
-
/***/ }),
|
|
166
|
-
|
|
167
|
-
/***/ 345:
|
|
159
|
+
/***/ 321:
|
|
168
160
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
169
161
|
|
|
170
162
|
"use strict";
|
|
@@ -178,11 +170,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
178
170
|
|
|
179
171
|
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
172
|
// Module
|
|
181
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-
|
|
173
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-4d58385e] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-4d58385e]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--05f90279)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-4d58385e]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--05f90279)*2.29);padding:0 calc(var(--05f90279)*.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(--05f90279)*.57) calc(var(--05f90279)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-4d58385e]{display:flex;align-items:center;gap:calc(var(--05f90279)*.38)}.yx-speech-recognition .box .title-icon img[data-v-4d58385e]{width:calc(var(--05f90279)*1);height:calc(var(--05f90279)*1)}.yx-speech-recognition .box .title-icon span[data-v-4d58385e]{font-size:calc(var(--05f90279)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-4d58385e]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-4d58385e]{width:calc(var(--05f90279)*1.1)}.yx-speech-recognition .box .content[data-v-4d58385e]{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-4d58385e]{margin-top:calc(var(--05f90279)*7.5);font-size:calc(var(--05f90279)*1)}.yx-speech-recognition .box .message-list[data-v-4d58385e]{overflow:hidden;padding:calc(var(--05f90279)*.58);box-sizing:border-box;padding-right:calc(var(--05f90279)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-4d58385e]{height:100%;display:flex;flex-direction:column;gap:calc(var(--05f90279)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-4d58385e]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-4d58385e]{width:calc(var(--05f90279)*3.76);height:calc(var(--05f90279)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-4d58385e]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-4d58385e]{position:absolute;top:0;left:calc(var(--05f90279)*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-4d58385e]{font-size:calc(var(--05f90279)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-4d58385e]{width:calc(var(--05f90279)*1.26);height:calc(var(--05f90279)*1.28);margin-right:calc(var(--05f90279)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-4d58385e]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-4d58385e]{border-top:calc(var(--05f90279)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--05f90279)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-4d58385e]{display:flex;overflow:hidden;margin:10px 0}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-4d58385e]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-4d58385e]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-4d58385e]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-4d58385e]{flex-shrink:0;width:calc(var(--05f90279)*1.2);font-size:calc(var(--05f90279)*.9);height:calc(var(--05f90279)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--05f90279)*.1);margin-right:calc(var(--05f90279)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-4d58385e]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-label[data-v-4d58385e]{display:inline-block;width:auto;font-size:calc(var(--05f90279)*.9);border-radius:5px;padding:0 8px}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-4d58385e]{font-size:calc(var(--05f90279)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-4d58385e]{display:block;max-width:calc(var(--05f90279)*19.21);font-size:calc(var(--05f90279)*1);color:#fff;word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-4d58385e],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]{border-radius:calc(var(--05f90279)*.27);padding:calc(var(--05f90279)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-4d58385e]{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-4d58385e]{max-width:calc(var(--05f90279)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]{margin-bottom:15px;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--05f90279)*.57) 0 #d4d9ff}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]:before{border-top:calc(var(--05f90279)*.25) solid transparent;border-bottom:calc(var(--05f90279)*.25) solid transparent;border-right:calc(var(--05f90279)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--05f90279)*-.46));left:0;top:calc(var(--05f90279)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-4d58385e]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--05f90279)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-4d58385e]:before{border-right:calc(var(--05f90279)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-4d58385e]:after{border-top:calc(var(--05f90279)*.25) solid transparent;border-bottom:calc(var(--05f90279)*.25) solid transparent;border-right:calc(var(--05f90279)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--05f90279)*-.46));left:0;top:calc(var(--05f90279)*.48)}.inputContainer[data-v-4d58385e]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--05f90279)*.57)}.inputContainer .inputBox[data-v-4d58385e]{margin:4px;flex:1;height:calc(var(--05f90279)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--05f90279)*.57);font-size:calc(var(--05f90279)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-4d58385e]{margin-right:20px;flex-shrink:0}", ""]);
|
|
182
174
|
// Exports
|
|
183
175
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
184
176
|
|
|
185
177
|
|
|
178
|
+
/***/ }),
|
|
179
|
+
|
|
180
|
+
/***/ 344:
|
|
181
|
+
/***/ (function(module) {
|
|
182
|
+
|
|
183
|
+
"use strict";
|
|
184
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAByFBMVEUAAACPyf+z2f+z2v+nzv/R6Pzb7/3j6vjM5f3s9Pyj0v232f/e7Pqm1P7H4v3A4P2y2P6f0P7D4f7F4/7F4/2s1f7J5P+Ryf/V6vzl8fuo1P693v2m0/7s9fu73f7C4f3g8Pzc7fym0//L5f2Uy//s9Pva7Pzj8PvL5f2p1f/o8vu22/7s9fzD4fzP5/3q8/uu1/7Y6/2Wy/+l0v+02f3I4/zr9PrJ5Pyn1P/M5/+z2P7r8/vI4/uVzP+czv/q9f2Syv2p1P/m8fyVyP+o1/+y4f+Wy//M5vydz/7e7fyv1/3e7vyTyf+QyP+q1f6Qyf/G4v242/242/6h0P6Zzf6p0/6u1v6l0v/B4P6y2f6bzv+Vyv7T6PzT6vyQyf+k0v/B4P3I5f2Syf+02f3m8vvm8vvB4P2czv2Px//M5P3P5/2z2/zI4fmQw//Q5/2s1v7M5fyw2P2/3/263f242/222v3T6PzY6/zV6vzB4P2i0f6f0P6dz/7o8/zc7fyZzf+bzv6z2f2k0v7K5Pze7vuUyv+Xy/7G4v3I4/zh7/um0/7D4fyo1P7j8PvZ7Pu93f3l8fuSyf6Syf+93v283v3a7PzD4f2p1f5WYUP6AAAAbnRSTlMA+UoFCC8kB+/tkko1Jfr47uvUsIVjNPz7+/r5+Pjt7Orq5ePY1c/PzLW1sK6smJiTjYyIgYCAXlJKQD8/PjYwMC8uJRYQ+/rz8/Ly7uzo5NzW1dDQzMm9vby7trW0rqadmpiTjYyDg4B8a1sqHqwtFkwAAAHmSURBVDjLjc6FV9tQGAXwy5KmAvVS3N3dYQybu7u7VOZsY1vHNhjMOjr4d3kv0nyhJM0v57y8e993XgIj58RwZ5O7qsrd1Dk84YS56R73EuHumcbuZtuXcrTPIpfzbtnfXZTdy/kNqeWXiRYJBkW1P0zVFhkmD321cITMSnUfLdVJUDmb/zO/c7BS7ZtFKPre5NUHmaP0bV6lDnBXX9twTb40Zgu/tjuWUB6Gd3KI8UibRDcguNTyQCQ61pqgXI8dIw3ZIGByWfUIwELDMjEG4KlPS5MYWlVJYG6t6lzgWrU4hPCKKgqma0XnE8Gc1GIYoXVVWACivs1NvlfWCICRdU0INYuaUOSmf9Hg4v0uPdTA/9wmPyo2Nv6oMhm+194Zhu+08wpUv7CpGqde2nQaHa9s6sBgigg82cMUFirrnRQ1iPEkk0olZZdAeeVOOx+HEEjqDgsgipNEQAB640QxiPP0pJd/Jpu2tuLH58mlcWoGTNtP4twCVKPltG8D561cI+pHwc171qjyGcgGvhjU3xjwXKg0dh4oxOC7PM6IUHneWwt6oXnwwdLBvci6/NlKkExOfbJydg5ZYuN3c/v7Rej6v5m7sg/EXEk6/Y9Jy/heS0dvs0Hq2YmCnUoKjjVefzglwGAbp2FhRMz/ntsAAAAASUVORK5CYII=";
|
|
185
|
+
|
|
186
186
|
/***/ }),
|
|
187
187
|
|
|
188
188
|
/***/ 459:
|
|
@@ -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=4d58385e&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; }
|
|
@@ -979,10 +979,14 @@ var render = function render() {
|
|
|
979
979
|
"alt": ""
|
|
980
980
|
}
|
|
981
981
|
})])])]) : _vm._e(), _c('div', {
|
|
982
|
+
directives: [{
|
|
983
|
+
name: "DragBubble",
|
|
984
|
+
rawName: "v-DragBubble"
|
|
985
|
+
}],
|
|
982
986
|
staticClass: "displayAssistant",
|
|
983
|
-
style: _vm.
|
|
987
|
+
style: _vm.bubbleStyle
|
|
984
988
|
}, [_c('div', {
|
|
985
|
-
staticClass: "icon1"
|
|
989
|
+
staticClass: "icon1 drag-bubble-header"
|
|
986
990
|
}, [_c('img', {
|
|
987
991
|
attrs: {
|
|
988
992
|
"src": "http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon8-BTvF9JNL.png",
|
|
@@ -1008,12 +1012,12 @@ var render = function render() {
|
|
|
1008
1012
|
}
|
|
1009
1013
|
}), _vm._v(" 努力思考中··· ")]) : _vm._e(), _vm.bubbleBoxBackList.length ? _c('span', {
|
|
1010
1014
|
staticClass: "box-container"
|
|
1011
|
-
}, _vm._l(_vm.bubbleBoxBackList, function (item1, index1) {
|
|
1015
|
+
}, [_vm._l(_vm.bubbleBoxBackList.slice(_vm.currentPage * _vm.pageSize, (_vm.currentPage + 1) * _vm.pageSize), function (item1, index1) {
|
|
1012
1016
|
return item1.name ? _c('span', {
|
|
1013
1017
|
staticClass: "item-box"
|
|
1014
1018
|
}, [_c('div', {
|
|
1015
1019
|
staticClass: "item-box-index"
|
|
1016
|
-
}, [_vm._v(_vm._s(
|
|
1020
|
+
}, [_vm._v(_vm._s(item1.index + 1))]), _c('div', {
|
|
1017
1021
|
staticClass: "item-box-content"
|
|
1018
1022
|
}, [_c('div', [item1.label ? _c('span', {
|
|
1019
1023
|
staticClass: "item-box-label",
|
|
@@ -1023,7 +1027,12 @@ var render = function render() {
|
|
|
1023
1027
|
}, [_vm._v(_vm._s(item1.label))]) : _vm._e(), _vm._v(" " + _vm._s(item1.name) + " ")]), _c('div', {
|
|
1024
1028
|
staticClass: "item-box-descriptions"
|
|
1025
1029
|
}, [_vm._v(_vm._s(item1 === null || item1 === void 0 ? void 0 : item1.address))])])]) : _vm._e();
|
|
1026
|
-
}),
|
|
1030
|
+
}), _vm.bubbleBoxBackList.length > _vm.pageSize ? _c('span', {
|
|
1031
|
+
staticStyle: {
|
|
1032
|
+
"display": "flex",
|
|
1033
|
+
"justify-content": "end"
|
|
1034
|
+
}
|
|
1035
|
+
}, [_vm._v("换一批")]) : _vm._e()], 2) : _vm._e()]), _vm.bubbleBoxRecommandList.length ? _c('div', {
|
|
1027
1036
|
staticClass: "bubbleBox-suggest"
|
|
1028
1037
|
}, [_c('span', [_c('span', [_vm._v("您可以这样问我:")]), _vm._l(_vm.bubbleBoxRecommandList, function (item2, index2) {
|
|
1029
1038
|
return _c('span', {
|
|
@@ -1062,7 +1071,7 @@ var staticRenderFns = [function () {
|
|
|
1062
1071
|
}, [_c('span', [_vm._v("Hi,我是小安,有问题,尽管问。")])]);
|
|
1063
1072
|
}];
|
|
1064
1073
|
|
|
1065
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
1074
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=4d58385e&scoped=true
|
|
1066
1075
|
|
|
1067
1076
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
1068
1077
|
var cryptojs = __webpack_require__(672);
|
|
@@ -1385,13 +1394,14 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1385
1394
|
return v.toString(16);
|
|
1386
1395
|
});
|
|
1387
1396
|
}; // const serverTime = await getServerTime()
|
|
1388
|
-
params['secretid'] = this.config.secretid || ''
|
|
1397
|
+
// params['secretid'] = this.config.secretid || ''
|
|
1389
1398
|
params['engine_model_type'] = this.query.engine_model_type || '16k_zh';
|
|
1390
1399
|
// params['timestamp'] = parseInt(serverTime) || Math.round(time / 1000)
|
|
1391
1400
|
params['expired'] = Math.round(time / 1000) + 24 * 60 * 60;
|
|
1392
1401
|
params['nonce'] = Math.round(time / 100000);
|
|
1393
1402
|
params['voice_id'] = guid();
|
|
1394
1403
|
params['noise_threshold'] = '1'; // 降噪处理
|
|
1404
|
+
params['customization_id'] = '6d5793a8f36911ef959406b1cf581094'; //自学习模型id
|
|
1395
1405
|
|
|
1396
1406
|
// 非必填参数
|
|
1397
1407
|
this.query.hasOwnProperty('voice_format') && (params['voice_format'] = this.query.voice_format);
|
|
@@ -1403,9 +1413,10 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1403
1413
|
this.query.hasOwnProperty('convert_num_mode') && (params['convert_num_mode'] = this.query.convert_num_mode);
|
|
1404
1414
|
this.query.hasOwnProperty('word_info') && (params['word_info'] = this.query.word_info);
|
|
1405
1415
|
this.query.hasOwnProperty('vad_silence_time') && (params['vad_silence_time'] = this.query.vad_silence_time);
|
|
1416
|
+
this.query.hasOwnProperty('result_text_format') && (params['result_text_format'] = this.query.result_text_format);
|
|
1406
1417
|
this.config.token && (params['token'] = this.config.token);
|
|
1407
1418
|
return _context2.abrupt("return", params);
|
|
1408
|
-
case
|
|
1419
|
+
case 23:
|
|
1409
1420
|
case "end":
|
|
1410
1421
|
return _context2.stop();
|
|
1411
1422
|
}
|
|
@@ -1488,7 +1499,7 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
1488
1499
|
return asr.getSignStr();
|
|
1489
1500
|
case 3:
|
|
1490
1501
|
signStr = _context4.sent;
|
|
1491
|
-
return _context4.abrupt("return",
|
|
1502
|
+
return _context4.abrupt("return", signStr);
|
|
1492
1503
|
case 5:
|
|
1493
1504
|
case "end":
|
|
1494
1505
|
return _context4.stop();
|
|
@@ -6084,7 +6095,7 @@ var Tx = /*#__PURE__*/function () {
|
|
|
6084
6095
|
key: "speech2speech2",
|
|
6085
6096
|
value: function speech2speech2(formData) {
|
|
6086
6097
|
return gridRequest.post('/speech2speech/speech2speech2', formData, {
|
|
6087
|
-
timeout:
|
|
6098
|
+
timeout: 60 * 1000,
|
|
6088
6099
|
headers: {
|
|
6089
6100
|
'Content-Type': "application/json;"
|
|
6090
6101
|
}
|
|
@@ -16778,9 +16789,127 @@ var Drag = {
|
|
|
16778
16789
|
}
|
|
16779
16790
|
};
|
|
16780
16791
|
/* harmony default export */ var drag = ((/* unused pure expression or super */ null && (Drag)));
|
|
16792
|
+
;// ./package/SpeechRecognition/directive/dragBubble.js
|
|
16793
|
+
function dragBubble_typeof(o) { "@babel/helpers - typeof"; return dragBubble_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; }, dragBubble_typeof(o); }
|
|
16794
|
+
var DragBubble = {
|
|
16795
|
+
bind: function bind(el, binding, vnode) {
|
|
16796
|
+
var dragDom = el.querySelector('.drag-box') || el;
|
|
16797
|
+
var dragHeaderEl = el.querySelector('.drag-bubble-header') || el.querySelector('.header');
|
|
16798
|
+
if (!dragHeaderEl) {
|
|
16799
|
+
console.warn('未找到拖拽头部元素');
|
|
16800
|
+
return;
|
|
16801
|
+
}
|
|
16802
|
+
var boxWidth = dragDom.style.width.replace('px', '') || 160;
|
|
16803
|
+
var boxHeight = dragDom.style.height.replace('px', '') || 165;
|
|
16804
|
+
var isDragging = false;
|
|
16805
|
+
var startX = 0,
|
|
16806
|
+
startY = 0,
|
|
16807
|
+
initialLeft = 0,
|
|
16808
|
+
initialTop = 0;
|
|
16809
|
+
var vm = vnode.context;
|
|
16810
|
+
var startDrag = function startDrag(e) {
|
|
16811
|
+
// 鼠标按下,计算当前元素距离可视区的距离 (鼠标点击位置距离可视窗口的距离)
|
|
16812
|
+
if (e.target.closest('.closeBtn')) return;
|
|
16813
|
+
if (e.button != 0) return;
|
|
16814
|
+
isDragging = true;
|
|
16815
|
+
|
|
16816
|
+
// 获取当前实际位置
|
|
16817
|
+
var rect = dragDom.getBoundingClientRect();
|
|
16818
|
+
// const containerRect = dragDom.parentElement.getBoundingClientRect()
|
|
16819
|
+
|
|
16820
|
+
initialLeft = rect.left;
|
|
16821
|
+
initialTop = rect.top;
|
|
16822
|
+
// initialLeft = rect.left - containerRect.left
|
|
16823
|
+
// initialTop = rect.top - containerRect.top
|
|
16824
|
+
|
|
16825
|
+
startX = e.clientX;
|
|
16826
|
+
startY = e.clientY;
|
|
16827
|
+
dragDom.classList.add('dragging');
|
|
16828
|
+
document.addEventListener('mousemove', onDrag);
|
|
16829
|
+
document.addEventListener('mouseup', _stopDrag);
|
|
16830
|
+
e.preventDefault();
|
|
16831
|
+
e.stopPropagation();
|
|
16832
|
+
};
|
|
16833
|
+
var onDrag = function onDrag(e) {
|
|
16834
|
+
if (!isDragging) return;
|
|
16835
|
+
var deltaX = e.clientX - startX;
|
|
16836
|
+
var deltaY = e.clientY - startY;
|
|
16837
|
+
var maxX = window.innerWidth - boxWidth;
|
|
16838
|
+
var maxY = window.innerHeight - boxHeight;
|
|
16839
|
+
var newLeft = Math.max(0, Math.min(initialLeft + deltaX, maxX));
|
|
16840
|
+
var newTop = Math.max(0, Math.min(initialTop + deltaY, maxY));
|
|
16841
|
+
|
|
16842
|
+
// 直接更新样式
|
|
16843
|
+
dragDom.style.left = newLeft + 'px';
|
|
16844
|
+
dragDom.style.top = newTop + 'px';
|
|
16845
|
+
|
|
16846
|
+
// 关键:更新 Vue 数据,确保响应式更新
|
|
16847
|
+
updateVueData(newLeft, newTop);
|
|
16848
|
+
};
|
|
16849
|
+
var _stopDrag = function stopDrag() {
|
|
16850
|
+
isDragging = false;
|
|
16851
|
+
dragDom.classList.remove('dragging');
|
|
16852
|
+
document.removeEventListener('mousemove', onDrag);
|
|
16853
|
+
document.removeEventListener('mouseup', _stopDrag);
|
|
16854
|
+
};
|
|
16855
|
+
|
|
16856
|
+
// 更新 Vue 数据的函数
|
|
16857
|
+
var updateVueData = function updateVueData(left, top) {
|
|
16858
|
+
if (!vm) return;
|
|
16859
|
+
|
|
16860
|
+
// 方式1:如果指令有绑定值,使用绑定值作为数据路径
|
|
16861
|
+
if (binding.value) {
|
|
16862
|
+
var dataPath = binding.value;
|
|
16863
|
+
if (vm[dataPath]) {
|
|
16864
|
+
vm[dataPath].left = left + 'px';
|
|
16865
|
+
vm[dataPath].top = top + 'px';
|
|
16866
|
+
}
|
|
16867
|
+
}
|
|
16868
|
+
// 方式2:如果没有绑定值,尝试自动更新常见的样式对象
|
|
16869
|
+
else {
|
|
16870
|
+
// 常见的样式数据属性名
|
|
16871
|
+
var possibleStyleProps = ['bubbleStyle'];
|
|
16872
|
+
for (var _i = 0, _possibleStyleProps = possibleStyleProps; _i < _possibleStyleProps.length; _i++) {
|
|
16873
|
+
var prop = _possibleStyleProps[_i];
|
|
16874
|
+
if (vm[prop] && dragBubble_typeof(vm[prop]) === 'object') {
|
|
16875
|
+
vm.$set(vm[prop], 'left', left + 'px');
|
|
16876
|
+
vm.$set(vm[prop], 'top', top + 'px');
|
|
16877
|
+
break;
|
|
16878
|
+
}
|
|
16879
|
+
}
|
|
16880
|
+
|
|
16881
|
+
// 或者更新独立的 x, y 数据
|
|
16882
|
+
if (vm.x !== undefined) vm.x = left;
|
|
16883
|
+
if (vm.y !== undefined) vm.y = top;
|
|
16884
|
+
}
|
|
16885
|
+
};
|
|
16886
|
+
|
|
16887
|
+
// 确保有定位
|
|
16888
|
+
if (window.getComputedStyle(dragDom).position === 'static') {
|
|
16889
|
+
dragDom.style.position = 'absolute';
|
|
16890
|
+
}
|
|
16891
|
+
dragHeaderEl.style.cursor = 'move';
|
|
16892
|
+
dragHeaderEl.addEventListener('mousedown', startDrag);
|
|
16893
|
+
el._cleanupDrag = function () {
|
|
16894
|
+
dragHeaderEl.removeEventListener('mousedown', startDrag);
|
|
16895
|
+
};
|
|
16896
|
+
},
|
|
16897
|
+
unbind: function unbind(el) {
|
|
16898
|
+
if (el._cleanupDrag) {
|
|
16899
|
+
el._cleanupDrag();
|
|
16900
|
+
}
|
|
16901
|
+
}
|
|
16902
|
+
};
|
|
16903
|
+
/* harmony default export */ var dragBubble = ((/* unused pure expression or super */ null && (DragBubble)));
|
|
16781
16904
|
;// ./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
|
|
16782
16905
|
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); }
|
|
16783
16906
|
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; }
|
|
16907
|
+
function SpeechRecognitionvue_type_script_lang_js_toConsumableArray(r) { return SpeechRecognitionvue_type_script_lang_js_arrayWithoutHoles(r) || SpeechRecognitionvue_type_script_lang_js_iterableToArray(r) || SpeechRecognitionvue_type_script_lang_js_unsupportedIterableToArray(r) || SpeechRecognitionvue_type_script_lang_js_nonIterableSpread(); }
|
|
16908
|
+
function SpeechRecognitionvue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16909
|
+
function SpeechRecognitionvue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return SpeechRecognitionvue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? SpeechRecognitionvue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
16910
|
+
function SpeechRecognitionvue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
16911
|
+
function SpeechRecognitionvue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return SpeechRecognitionvue_type_script_lang_js_arrayLikeToArray(r); }
|
|
16912
|
+
function SpeechRecognitionvue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16784
16913
|
function SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
16785
16914
|
function SpeechRecognitionvue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
16786
16915
|
function SpeechRecognitionvue_type_script_lang_js_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; }
|
|
@@ -16795,10 +16924,12 @@ function SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, r) { if ("objec
|
|
|
16795
16924
|
|
|
16796
16925
|
|
|
16797
16926
|
|
|
16927
|
+
|
|
16798
16928
|
var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
16799
16929
|
name: "yx-speech-recognition",
|
|
16800
16930
|
directives: {
|
|
16801
|
-
Drag: Drag
|
|
16931
|
+
Drag: Drag,
|
|
16932
|
+
DragBubble: DragBubble
|
|
16802
16933
|
},
|
|
16803
16934
|
components: {
|
|
16804
16935
|
Message: Message
|
|
@@ -16868,7 +16999,13 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16868
16999
|
bubbleBoxType: "",
|
|
16869
17000
|
bubbleBoxTitle: "",
|
|
16870
17001
|
bubbleBoxBackList: [],
|
|
17002
|
+
tempBoxTitle: "",
|
|
17003
|
+
tempBackList: [],
|
|
17004
|
+
currentPage: 0,
|
|
17005
|
+
pageSize: 5,
|
|
16871
17006
|
bubbleBoxRecommandList: [],
|
|
17007
|
+
leftList: ['上一批', '上一页'],
|
|
17008
|
+
rightList: ['下一批', '下一页', '换一批', '换一页'],
|
|
16872
17009
|
messagesList: [],
|
|
16873
17010
|
voiecContent: "",
|
|
16874
17011
|
sessionId: guid(),
|
|
@@ -16953,6 +17090,15 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16953
17090
|
},
|
|
16954
17091
|
immediate: true,
|
|
16955
17092
|
deep: true
|
|
17093
|
+
},
|
|
17094
|
+
imgPosition: {
|
|
17095
|
+
handler: function handler(val) {
|
|
17096
|
+
if (Object.keys(val)) {
|
|
17097
|
+
this.bubbleStyle = val;
|
|
17098
|
+
}
|
|
17099
|
+
},
|
|
17100
|
+
immediate: true,
|
|
17101
|
+
deep: true
|
|
16956
17102
|
}
|
|
16957
17103
|
},
|
|
16958
17104
|
methods: {
|
|
@@ -17030,7 +17176,9 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17030
17176
|
var type = messages.type,
|
|
17031
17177
|
content = messages.content,
|
|
17032
17178
|
back_list = messages.back_list,
|
|
17033
|
-
recommand_list = messages.recommand_list
|
|
17179
|
+
recommand_list = messages.recommand_list,
|
|
17180
|
+
_messages$resetPage = messages.resetPage,
|
|
17181
|
+
resetPage = _messages$resetPage === void 0 ? true : _messages$resetPage;
|
|
17034
17182
|
var _messages = this.messagesList.find(function (item) {
|
|
17035
17183
|
return item.sentenceId == res.sentenceId;
|
|
17036
17184
|
});
|
|
@@ -17041,7 +17189,12 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17041
17189
|
recommandList: recommand_list
|
|
17042
17190
|
}));
|
|
17043
17191
|
}
|
|
17192
|
+
if (type == 'FROM') this.tempBoxTitle = content;
|
|
17044
17193
|
this.bubbleBoxBackList = back_list || [];
|
|
17194
|
+
if (this.bubbleBoxBackList.length) {
|
|
17195
|
+
this.tempBackList = this.bubbleBoxBackList;
|
|
17196
|
+
resetPage && (this.currentPage = 0);
|
|
17197
|
+
}
|
|
17045
17198
|
this.bubbleBoxRecommandList = recommand_list || [];
|
|
17046
17199
|
this.scrollMessageBox();
|
|
17047
17200
|
this.bubbleBoxType = type;
|
|
@@ -17051,7 +17204,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17051
17204
|
updateSession: function updateSession(opt) {
|
|
17052
17205
|
var _this3 = this;
|
|
17053
17206
|
return SpeechRecognitionvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
17054
|
-
var messages, res, type, content, back_list, recommand_list, _messages, voice_id, session_id, sentenceId, formData, _res, code, msg, obj, _content, standard_back, command_type,
|
|
17207
|
+
var messages, res, type, content, back_list, recommand_list, _messages, totalList, tempObj, _opts, voice_id, session_id, sentenceId, formData, _res, code, msg, obj, _content, standard_back, command_type, _opts2, _error$message, _error$message2;
|
|
17055
17208
|
return SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17056
17209
|
while (1) switch (_context.prev = _context.next) {
|
|
17057
17210
|
case 0:
|
|
@@ -17072,8 +17225,42 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17072
17225
|
_this3.scrollMessageBox();
|
|
17073
17226
|
_this3.bubbleBoxType = type;
|
|
17074
17227
|
_this3.bubbleBoxTitle = content;
|
|
17228
|
+
totalList = [].concat(SpeechRecognitionvue_type_script_lang_js_toConsumableArray(_this3.leftList), SpeechRecognitionvue_type_script_lang_js_toConsumableArray(_this3.rightList));
|
|
17229
|
+
tempObj = content.endsWith("。") ? content.slice(0, -1) : content;
|
|
17230
|
+
if (!(type === "TO" && res.result.slice_type === 2 && totalList.includes(tempObj) && _this3.tempBackList.length > _this3.pageSize)) {
|
|
17231
|
+
_context.next = 18;
|
|
17232
|
+
break;
|
|
17233
|
+
}
|
|
17234
|
+
_this3.oneQuestionOneAnswer = false;
|
|
17235
|
+
if (_this3.leftList.includes(tempObj)) {
|
|
17236
|
+
//上一页
|
|
17237
|
+
_this3.handleChange(0);
|
|
17238
|
+
} else if (_this3.rightList.includes(tempObj)) {
|
|
17239
|
+
// 下一页
|
|
17240
|
+
_this3.handleChange(1);
|
|
17241
|
+
}
|
|
17242
|
+
_opts = {
|
|
17243
|
+
res: {},
|
|
17244
|
+
messages: {
|
|
17245
|
+
type: "FROM",
|
|
17246
|
+
content: _this3.tempBoxTitle,
|
|
17247
|
+
back_list: _this3.tempBackList,
|
|
17248
|
+
resetPage: false
|
|
17249
|
+
},
|
|
17250
|
+
sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
17251
|
+
}; // this.pushMessage(_opts)
|
|
17252
|
+
// this.oneQuestionOneAnswer = true
|
|
17253
|
+
_this3.handlePlayTTS({
|
|
17254
|
+
content: _this3.tempBoxTitle,
|
|
17255
|
+
onStart: function onStart() {
|
|
17256
|
+
_this3.pushMessage(_opts);
|
|
17257
|
+
}
|
|
17258
|
+
});
|
|
17259
|
+
_context.next = 57;
|
|
17260
|
+
break;
|
|
17261
|
+
case 18:
|
|
17075
17262
|
if (!(type === "TO" && res.result.slice_type === 2)) {
|
|
17076
|
-
_context.next =
|
|
17263
|
+
_context.next = 56;
|
|
17077
17264
|
break;
|
|
17078
17265
|
}
|
|
17079
17266
|
_this3.getSystem();
|
|
@@ -17089,36 +17276,36 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17089
17276
|
client_id: _this3.clientId
|
|
17090
17277
|
};
|
|
17091
17278
|
_this3.oneQuestionOneAnswer = false;
|
|
17092
|
-
_context.prev =
|
|
17093
|
-
_context.next =
|
|
17279
|
+
_context.prev = 23;
|
|
17280
|
+
_context.next = 26;
|
|
17094
17281
|
return Tx.speech2speech2(formData);
|
|
17095
|
-
case
|
|
17282
|
+
case 26:
|
|
17096
17283
|
_res = _context.sent;
|
|
17097
17284
|
code = _res.code, msg = _res.msg, obj = _res.obj;
|
|
17098
17285
|
if (!(code == 200)) {
|
|
17099
|
-
_context.next =
|
|
17286
|
+
_context.next = 43;
|
|
17100
17287
|
break;
|
|
17101
17288
|
}
|
|
17102
17289
|
_content = "";
|
|
17103
17290
|
standard_back = obj.standard_back, command_type = obj.command_type;
|
|
17104
17291
|
if (!(Object.keys(obj).length > 0)) {
|
|
17105
|
-
_context.next =
|
|
17292
|
+
_context.next = 37;
|
|
17106
17293
|
break;
|
|
17107
17294
|
}
|
|
17108
17295
|
_content = standard_back || "抱歉,我还在学习中";
|
|
17109
17296
|
if (!(command_type === "地理实体页面定位" && _content != "抱歉,我还在学习中")) {
|
|
17110
|
-
_context.next =
|
|
17297
|
+
_context.next = 35;
|
|
17111
17298
|
break;
|
|
17112
17299
|
}
|
|
17113
17300
|
return _context.abrupt("return");
|
|
17114
|
-
case
|
|
17115
|
-
_context.next =
|
|
17301
|
+
case 35:
|
|
17302
|
+
_context.next = 38;
|
|
17116
17303
|
break;
|
|
17117
|
-
case
|
|
17304
|
+
case 37:
|
|
17118
17305
|
_content = "抱歉,我还在学习中";
|
|
17119
|
-
case
|
|
17306
|
+
case 38:
|
|
17120
17307
|
_this3.voiecContent = obj;
|
|
17121
|
-
|
|
17308
|
+
_opts2 = {
|
|
17122
17309
|
res: {},
|
|
17123
17310
|
messages: {
|
|
17124
17311
|
type: "FROM",
|
|
@@ -17129,7 +17316,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17129
17316
|
_this3.handlePlayTTS({
|
|
17130
17317
|
content: _content,
|
|
17131
17318
|
onStart: function onStart() {
|
|
17132
|
-
_this3.pushMessage(
|
|
17319
|
+
_this3.pushMessage(_opts2);
|
|
17133
17320
|
}
|
|
17134
17321
|
});
|
|
17135
17322
|
// this.openAide()
|
|
@@ -17138,9 +17325,9 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17138
17325
|
// messages: { type: "FROM", content: _content },
|
|
17139
17326
|
// sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
17140
17327
|
// });
|
|
17141
|
-
_context.next =
|
|
17328
|
+
_context.next = 44;
|
|
17142
17329
|
break;
|
|
17143
|
-
case
|
|
17330
|
+
case 43:
|
|
17144
17331
|
if (code === 504) {
|
|
17145
17332
|
_this3.timeOutContent();
|
|
17146
17333
|
} else if (code === 300) {
|
|
@@ -17149,12 +17336,12 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17149
17336
|
// this.timeOutContent()
|
|
17150
17337
|
// this.startWaitAnswer()
|
|
17151
17338
|
}
|
|
17152
|
-
case
|
|
17153
|
-
_context.next =
|
|
17339
|
+
case 44:
|
|
17340
|
+
_context.next = 52;
|
|
17154
17341
|
break;
|
|
17155
|
-
case
|
|
17156
|
-
_context.prev =
|
|
17157
|
-
_context.t0 = _context["catch"](
|
|
17342
|
+
case 46:
|
|
17343
|
+
_context.prev = 46;
|
|
17344
|
+
_context.t0 = _context["catch"](23);
|
|
17158
17345
|
console.log("speech2speech2 ->", _context.t0);
|
|
17159
17346
|
console.log(_context.t0.message);
|
|
17160
17347
|
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"));
|
|
@@ -17164,27 +17351,37 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17164
17351
|
} else {
|
|
17165
17352
|
_this3.oneQuestionOneAnswer = true;
|
|
17166
17353
|
}
|
|
17167
|
-
case
|
|
17168
|
-
_context.prev =
|
|
17169
|
-
return _context.finish(
|
|
17170
|
-
case
|
|
17171
|
-
_context.next =
|
|
17354
|
+
case 52:
|
|
17355
|
+
_context.prev = 52;
|
|
17356
|
+
return _context.finish(52);
|
|
17357
|
+
case 54:
|
|
17358
|
+
_context.next = 57;
|
|
17172
17359
|
break;
|
|
17173
|
-
case
|
|
17360
|
+
case 56:
|
|
17174
17361
|
if (type === "FROM") {
|
|
17175
17362
|
_this3.handlePlayTTS({
|
|
17176
17363
|
content: content
|
|
17177
17364
|
});
|
|
17178
17365
|
}
|
|
17179
|
-
case
|
|
17366
|
+
case 57:
|
|
17180
17367
|
_this3.wakeUpTime = new Date().getTime();
|
|
17181
|
-
case
|
|
17368
|
+
case 58:
|
|
17182
17369
|
case "end":
|
|
17183
17370
|
return _context.stop();
|
|
17184
17371
|
}
|
|
17185
|
-
}, _callee, null, [[
|
|
17372
|
+
}, _callee, null, [[23, 46, 52, 54]]);
|
|
17186
17373
|
}))();
|
|
17187
17374
|
},
|
|
17375
|
+
handleChange: function handleChange(type) {
|
|
17376
|
+
var page = this.currentPage;
|
|
17377
|
+
if (type == 1) {
|
|
17378
|
+
page += 1;
|
|
17379
|
+
} else if (type == 0) {
|
|
17380
|
+
page -= 1;
|
|
17381
|
+
}
|
|
17382
|
+
if (page * this.pageSize > this.tempBackList.length || page <= 0) page = 0;
|
|
17383
|
+
this.currentPage = page;
|
|
17384
|
+
},
|
|
17188
17385
|
timeOutContent: function timeOutContent() {
|
|
17189
17386
|
var _this4 = this;
|
|
17190
17387
|
this.isWaitAnswer = true;
|
|
@@ -17241,6 +17438,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17241
17438
|
_this6.exitAide();
|
|
17242
17439
|
_this6.bubbleBoxTitle = "";
|
|
17243
17440
|
_this6.bubbleBoxType = "";
|
|
17441
|
+
_this6.tempBoxTitle = "";
|
|
17442
|
+
_this6.tempBackList = [];
|
|
17244
17443
|
}, 1000);
|
|
17245
17444
|
}
|
|
17246
17445
|
});
|
|
@@ -17251,6 +17450,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17251
17450
|
this.bubbleBoxTitle = "";
|
|
17252
17451
|
this.bubbleBoxType = "";
|
|
17253
17452
|
this.updateSessionId();
|
|
17453
|
+
this.tempBoxTitle = "";
|
|
17454
|
+
this.tempBackList = [];
|
|
17254
17455
|
// this.onStop()
|
|
17255
17456
|
},
|
|
17256
17457
|
// 语音播放
|
|
@@ -17378,11 +17579,12 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17378
17579
|
hotword_id: "1a59c3abe45e11ef959406b1cf581094",
|
|
17379
17580
|
// 热词
|
|
17380
17581
|
needvad: 1,
|
|
17381
|
-
filter_dirty:
|
|
17382
|
-
filter_modal:
|
|
17582
|
+
filter_dirty: 1,
|
|
17583
|
+
filter_modal: 2,
|
|
17383
17584
|
filter_punc: 0,
|
|
17384
17585
|
convert_num_mode: 1,
|
|
17385
|
-
|
|
17586
|
+
result_text_format: 0,
|
|
17587
|
+
word_info: 2,
|
|
17386
17588
|
vad_silence_time: 500
|
|
17387
17589
|
};
|
|
17388
17590
|
var webAudioSpeechRecognizer = new WebAudioSpeechRecognizer(params);
|
|
@@ -17550,12 +17752,17 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17550
17752
|
//发送指令
|
|
17551
17753
|
this.voiecContent = data.obj;
|
|
17552
17754
|
if (standard_back) {
|
|
17755
|
+
var _back_list = (back_list === null || back_list === void 0 ? void 0 : back_list.map(function (item, index) {
|
|
17756
|
+
return SpeechRecognitionvue_type_script_lang_js_objectSpread(SpeechRecognitionvue_type_script_lang_js_objectSpread({}, item), {}, {
|
|
17757
|
+
index: index
|
|
17758
|
+
});
|
|
17759
|
+
})) || [];
|
|
17553
17760
|
var _opts = {
|
|
17554
17761
|
res: {},
|
|
17555
17762
|
messages: {
|
|
17556
17763
|
type: "FROM",
|
|
17557
17764
|
content: standard_back,
|
|
17558
|
-
back_list:
|
|
17765
|
+
back_list: _back_list || [],
|
|
17559
17766
|
recommand_list: recommand_list || []
|
|
17560
17767
|
},
|
|
17561
17768
|
sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
@@ -17744,7 +17951,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17744
17951
|
var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
17745
17952
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
17746
17953
|
return {
|
|
17747
|
-
"
|
|
17954
|
+
"05f90279": _vm.htmlFontSize
|
|
17748
17955
|
};
|
|
17749
17956
|
});
|
|
17750
17957
|
};
|
|
@@ -17756,9 +17963,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
|
|
|
17756
17963
|
/* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
|
|
17757
17964
|
;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
17758
17965
|
/* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
|
|
17759
|
-
// 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=
|
|
17760
|
-
var
|
|
17761
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17966
|
+
// 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=4d58385e&prod&lang=scss&scoped=true
|
|
17967
|
+
var SpeechRecognitionvue_type_style_index_0_id_4d58385e_prod_lang_scss_scoped_true = __webpack_require__(59);
|
|
17968
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=4d58385e&prod&lang=scss&scoped=true
|
|
17762
17969
|
|
|
17763
17970
|
;// ./package/SpeechRecognition/index.vue
|
|
17764
17971
|
|
|
@@ -17775,7 +17982,7 @@ var SpeechRecognition_component = normalizeComponent(
|
|
|
17775
17982
|
staticRenderFns,
|
|
17776
17983
|
false,
|
|
17777
17984
|
null,
|
|
17778
|
-
"
|
|
17985
|
+
"4d58385e",
|
|
17779
17986
|
null
|
|
17780
17987
|
|
|
17781
17988
|
)
|