yxspeechrecognition 1.5.1 → 1.5.2

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.
@@ -11,22 +11,6 @@
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 232:
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__(476);
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__(258)/* ["default"] */ .A)
26
- var update = add("4bc9a9a2", content, true, {"sourceMap":false,"shadowMode":false});
27
-
28
- /***/ }),
29
-
30
14
  /***/ 258:
31
15
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
32
16
 
@@ -403,7 +387,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADy
403
387
 
404
388
  /***/ }),
405
389
 
406
- /***/ 476:
390
+ /***/ 435:
407
391
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
408
392
 
409
393
  "use strict";
@@ -417,11 +401,19 @@ __webpack_require__.r(__webpack_exports__);
417
401
 
418
402
  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()));
419
403
  // Module
420
- ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-2d7ca1c4]{position:absolute;right:calc(var(--4e5d5650)*81.43);top:calc(var(--4e5d5650)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-2d7ca1c4] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-2d7ca1c4]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--4e5d5650)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-2d7ca1c4]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--4e5d5650)*2.29);padding:0 calc(var(--4e5d5650)*.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(--4e5d5650)*.57) calc(var(--4e5d5650)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-2d7ca1c4]{display:flex;align-items:center;gap:calc(var(--4e5d5650)*.38)}.yx-speech-recognition .box .title-icon img[data-v-2d7ca1c4]{width:calc(var(--4e5d5650)*1);height:calc(var(--4e5d5650)*1)}.yx-speech-recognition .box .title-icon span[data-v-2d7ca1c4]{font-size:calc(var(--4e5d5650)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-2d7ca1c4]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-2d7ca1c4]{width:calc(var(--4e5d5650)*1.1)}.yx-speech-recognition .box .content[data-v-2d7ca1c4]{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-2d7ca1c4]{margin-top:calc(var(--4e5d5650)*7.5);font-size:calc(var(--4e5d5650)*1)}.yx-speech-recognition .box .message-list[data-v-2d7ca1c4]{overflow:hidden;padding:calc(var(--4e5d5650)*.58);box-sizing:border-box;padding-right:calc(var(--4e5d5650)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-2d7ca1c4]{height:100%;display:flex;flex-direction:column;gap:calc(var(--4e5d5650)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-2d7ca1c4]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-2d7ca1c4]{width:calc(var(--4e5d5650)*3.76);height:calc(var(--4e5d5650)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-2d7ca1c4]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-2d7ca1c4]{position:absolute;top:0;left:calc(var(--4e5d5650)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-2d7ca1c4]{display:block;max-width:calc(var(--4e5d5650)*19.21);font-size:calc(var(--4e5d5650)*1);color:#fff;padding:calc(var(--4e5d5650)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-2d7ca1c4]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--4e5d5650)*.57) 0 #d4d9ff;border-radius:calc(var(--4e5d5650)*.27);margin-left:calc(var(--4e5d5650)*.49);word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-2d7ca1c4]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-2d7ca1c4]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-2d7ca1c4]:before{border-top:calc(var(--4e5d5650)*.25) solid transparent;border-bottom:calc(var(--4e5d5650)*.25) solid transparent;border-right:calc(var(--4e5d5650)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--4e5d5650)*-.46));left:0;top:calc(var(--4e5d5650)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-2d7ca1c4]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--4e5d5650)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-2d7ca1c4]:before{border-right:calc(var(--4e5d5650)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-2d7ca1c4]:after{border-top:calc(var(--4e5d5650)*.25) solid transparent;border-bottom:calc(var(--4e5d5650)*.25) solid transparent;border-right:calc(var(--4e5d5650)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--4e5d5650)*-.46));left:0;top:calc(var(--4e5d5650)*.48)}", ""]);
404
+ ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-a292773e]{position:absolute;right:calc(var(--292167ed)*81.43);top:calc(var(--292167ed)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-a292773e] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-a292773e]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--292167ed)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-a292773e]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--292167ed)*2.29);padding:0 calc(var(--292167ed)*.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(--292167ed)*.57) calc(var(--292167ed)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-a292773e]{display:flex;align-items:center;gap:calc(var(--292167ed)*.38)}.yx-speech-recognition .box .title-icon img[data-v-a292773e]{width:calc(var(--292167ed)*1);height:calc(var(--292167ed)*1)}.yx-speech-recognition .box .title-icon span[data-v-a292773e]{font-size:calc(var(--292167ed)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-a292773e]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-a292773e]{width:calc(var(--292167ed)*1.1)}.yx-speech-recognition .box .content[data-v-a292773e]{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-a292773e]{margin-top:calc(var(--292167ed)*7.5);font-size:calc(var(--292167ed)*1)}.yx-speech-recognition .box .message-list[data-v-a292773e]{overflow:hidden;padding:calc(var(--292167ed)*.58);box-sizing:border-box;padding-right:calc(var(--292167ed)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-a292773e]{height:100%;display:flex;flex-direction:column;gap:calc(var(--292167ed)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-a292773e]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-a292773e]{width:calc(var(--292167ed)*3.76);height:calc(var(--292167ed)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-a292773e]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-a292773e]{position:absolute;top:0;left:calc(var(--292167ed)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-a292773e]{display:block;max-width:calc(var(--292167ed)*19.21);font-size:calc(var(--292167ed)*1);color:#fff;padding:calc(var(--292167ed)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-a292773e]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--292167ed)*.57) 0 #d4d9ff;border-radius:calc(var(--292167ed)*.27);margin-left:calc(var(--292167ed)*.49);word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-a292773e]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-a292773e]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-a292773e]:before{border-top:calc(var(--292167ed)*.25) solid transparent;border-bottom:calc(var(--292167ed)*.25) solid transparent;border-right:calc(var(--292167ed)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--292167ed)*-.46));left:0;top:calc(var(--292167ed)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-a292773e]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--292167ed)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-a292773e]:before{border-right:calc(var(--292167ed)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-a292773e]:after{border-top:calc(var(--292167ed)*.25) solid transparent;border-bottom:calc(var(--292167ed)*.25) solid transparent;border-right:calc(var(--292167ed)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--292167ed)*-.46));left:0;top:calc(var(--292167ed)*.48)}.inputContainer[data-v-a292773e]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--292167ed)*.57)}.inputContainer .inputBox[data-v-a292773e]{margin:4px;flex:1;height:calc(var(--292167ed)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--292167ed)*.57);font-size:calc(var(--292167ed)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-a292773e]{margin-right:20px;flex-shrink:0}", ""]);
421
405
  // Exports
422
406
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
423
407
 
424
408
 
409
+ /***/ }),
410
+
411
+ /***/ 462:
412
+ /***/ (function(module) {
413
+
414
+ "use strict";
415
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAJKElEQVR4AeybCaweVRXHp4oocYlIMArFaKIBl2hAjLIVqgFTBRTEiEKIoBbcqIK4oCBQQAlUpCoCyqKgCRBFwKhABC0UBcq+7wlQlhIgYV/z+P1e5jT3fd9s38x8vBL6cv7fOXc799xz79y5y7xXZa/wv5UOeIUPgGzlCFg5AqbBAxMTE6uCdcCGOdaGv3oaTBn/I0DD3gW+AS4AN4CHaegz4C5wWY574M+TtgxcDU4HO4G3ET9WGsscgOEbgH3BBVh/B/gN2AK8F6wOymhNEj4IdgCngPvQcQ74IVifcO/UqwMwciY4HCv/Bw4BNho2Sfby2UjHgQPB7mAbsC34OjgYnAjOBY+BoK0QfgYWo/sg8Cbk3qgXB2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sDBO8NLU0WDwNfycj0HxDBIcL1GXdw8xEq1sFjZ58KI8Elo5wBqo0PngM8o5jsCwJSD9niBP6oepGyxBW5wSX4K8HrZcCG9FrR1gbVTsO909gq8dozzj8w0x6QiMbTU/qCiAjjXAXGDDPXO0DpP/ws8cbOhyZtj9/wUwwF7w0GQfDIqFh0Zq7O0Yfgpw3iC5GZHfjyN2gbstdgutLnWq4Hp+nDx3oO5HkDtRpxEQNWPIs8DXmo6Qxzv4LeTZCfhh80M06CzgCPGbAHt1a8LeIO8Bnw9OAC6SvAX6A+X8vwG/HEfMfL/PR9iYunx9InanXhwQZmDYPcCRoCOclBwdkawzPKVxjvDU2F71CtvH6Ldk+gnYFfj/AXGSQzDz+fZKfRN07w/8rsD4XtCrA8IijLwC+FpyfliXeP+HwPf9jchVw/ZB0q8B3jJ/De6XqM7w89F3JeHeaSwOSK3E8FvAAjAbvA84El5LnneAj+Twi65VSHsr+BD4HPg9cJlMlvHR2B1QZDoNc864G+4JkFiKXHhuX1S+z7hpcUCfDeiqa6UDunrw5V7+ZT8CunbAiwAAAP//1lJoRwAAAAZJREFUAwC0WPKfAOfAQQAAAABJRU5ErkJggg==";
416
+
425
417
  /***/ }),
426
418
 
427
419
  /***/ 601:
@@ -436,6 +428,22 @@ module.exports = function (i) {
436
428
 
437
429
  /***/ }),
438
430
 
431
+ /***/ 607:
432
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
433
+
434
+ // style-loader: Adds some css to the DOM by adding a <style> tag
435
+
436
+ // load the styles
437
+ var content = __webpack_require__(435);
438
+ if(content.__esModule) content = content.default;
439
+ if(typeof content === 'string') content = [[module.id, content, '']];
440
+ if(content.locals) module.exports = content.locals;
441
+ // add the styles to the DOM
442
+ var add = (__webpack_require__(258)/* ["default"] */ .A)
443
+ var update = add("1fc76832", content, true, {"sourceMap":false,"shadowMode":false});
444
+
445
+ /***/ }),
446
+
439
447
  /***/ 659:
440
448
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
441
449
 
@@ -880,7 +888,7 @@ if (typeof window !== 'undefined') {
880
888
  // Indicate to webpack that this file can be concatenated
881
889
  /* harmony default export */ var setPublicPath = (null);
882
890
 
883
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=template&id=2d7ca1c4&scoped=true
891
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=template&id=a292773e&scoped=true
884
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); }
885
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; }
886
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; }
@@ -926,7 +934,33 @@ var render = function render() {
926
934
  "size": _vm.size
927
935
  }
928
936
  }, 'Message', item, false));
929
- }), 1)])]) : _vm._e(), _c('div', {
937
+ }), 1)]), _c('div', {
938
+ staticClass: "inputContainer"
939
+ }, [_c('input', {
940
+ directives: [{
941
+ name: "model",
942
+ rawName: "v-model",
943
+ value: _vm.inputContent,
944
+ expression: "inputContent"
945
+ }],
946
+ staticClass: "inputBox",
947
+ attrs: {
948
+ "placeholder": "请输入内容"
949
+ },
950
+ domProps: {
951
+ "value": _vm.inputContent
952
+ },
953
+ on: {
954
+ "keyup": function keyup($event) {
955
+ if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
956
+ return _vm.submitText.apply(null, arguments);
957
+ },
958
+ "input": function input($event) {
959
+ if ($event.target.composing) return;
960
+ _vm.inputContent = $event.target.value;
961
+ }
962
+ }
963
+ }), _vm._m(1)])]) : _vm._e(), _c('div', {
930
964
  staticClass: "displayAssistant",
931
965
  style: _vm.imgPosition
932
966
  }, [_c('div', {
@@ -959,9 +993,20 @@ var staticRenderFns = [function () {
959
993
  "alt": ""
960
994
  }
961
995
  }), _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
+ })]);
962
1007
  }];
963
1008
 
964
- ;// ./package/SpeechRecognition/index.vue?vue&type=template&id=2d7ca1c4&scoped=true
1009
+ ;// ./package/SpeechRecognition/index.vue?vue&type=template&id=a292773e&scoped=true
965
1010
 
966
1011
  // EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
967
1012
  var cryptojs = __webpack_require__(950);
@@ -16695,6 +16740,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16695
16740
  },
16696
16741
  data: function data() {
16697
16742
  return {
16743
+ inputContent: "",
16698
16744
  windowStyle: {
16699
16745
  left: "100px",
16700
16746
  top: "400px"
@@ -16872,7 +16918,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16872
16918
  _this2.bubbleBoxType = type;
16873
16919
  _this2.bubbleBoxTitle = content;
16874
16920
  if (!(type === "TO" && res.result.slice_type === 2)) {
16875
- _context.next = 39;
16921
+ _context.next = 40;
16876
16922
  break;
16877
16923
  }
16878
16924
  voice_id = res.voice_id, session_id = res.sessionId;
@@ -16891,7 +16937,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16891
16937
  _res = _context.sent;
16892
16938
  code = _res.code, msg = _res.msg, obj = _res.obj;
16893
16939
  if (!(code == 200)) {
16894
- _context.next = 29;
16940
+ _context.next = 30;
16895
16941
  break;
16896
16942
  }
16897
16943
  _content = "";
@@ -16920,45 +16966,48 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16920
16966
  content: _content
16921
16967
  },
16922
16968
  sentenceId: Math.floor(Math.random() * 1000000).toString()
16923
- };
16924
- _this2.handlePlayTTS({
16925
- content: _content,
16926
- onStart: function onStart() {
16927
- _this2.pushMessage(_opts);
16928
- }
16969
+ }; // this.handlePlayTTS({
16970
+ // content: _content,
16971
+ // onStart: () => {
16972
+ // this.pushMessage(_opts)
16973
+ // }
16974
+ // })
16975
+ _this2.openAide();
16976
+ _this2.updateSession({
16977
+ res: {},
16978
+ messages: {
16979
+ type: "FROM",
16980
+ content: _content
16981
+ },
16982
+ sentenceId: Math.floor(Math.random() * 1000000).toString()
16929
16983
  });
16930
- // this.updateSession({
16931
- // res: {},
16932
- // messages: { type: "FROM", content: _content },
16933
- // sentenceId: Math.floor(Math.random() * 1000000).toString()
16934
- // });
16935
- case 29:
16936
- _context.next = 34;
16984
+ case 30:
16985
+ _context.next = 35;
16937
16986
  break;
16938
- case 31:
16939
- _context.prev = 31;
16987
+ case 32:
16988
+ _context.prev = 32;
16940
16989
  _context.t0 = _context["catch"](11);
16941
16990
  console.log("speech2speech2 ->", _context.t0);
16942
- case 34:
16943
- _context.prev = 34;
16991
+ case 35:
16992
+ _context.prev = 35;
16944
16993
  _this2.oneQuestionOneAnswer = true;
16945
- return _context.finish(34);
16946
- case 37:
16947
- _context.next = 40;
16994
+ return _context.finish(35);
16995
+ case 38:
16996
+ _context.next = 41;
16948
16997
  break;
16949
- case 39:
16998
+ case 40:
16950
16999
  if (type === "FROM") {
16951
17000
  _this2.handlePlayTTS({
16952
17001
  content: content
16953
17002
  });
16954
17003
  }
16955
- case 40:
16956
- _this2.wakeUpTime = new Date().getTime();
16957
17004
  case 41:
17005
+ _this2.wakeUpTime = new Date().getTime();
17006
+ case 42:
16958
17007
  case "end":
16959
17008
  return _context.stop();
16960
17009
  }
16961
- }, _callee, null, [[11, 31, 34, 37]]);
17010
+ }, _callee, null, [[11, 32, 35, 38]]);
16962
17011
  }))();
16963
17012
  },
16964
17013
  // 自动退出(静默20s) - 小宝助手
@@ -17188,7 +17237,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17188
17237
  startHeart: function startHeart() {
17189
17238
  var _this7 = this;
17190
17239
  if (this.setIntervalWebsocket) {
17191
- clearInterval(setIntervalWebsocket);
17240
+ clearInterval(this.setIntervalWebsocket);
17192
17241
  this.setIntervalWebsocket = null;
17193
17242
  }
17194
17243
  this.sendPing();
@@ -17204,7 +17253,6 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17204
17253
  this.socket.send(JSON.stringify(heartBeat));
17205
17254
  },
17206
17255
  disposeMessage: function disposeMessage(message) {
17207
- var _this8 = this;
17208
17256
  var type = message.type,
17209
17257
  data = message.data;
17210
17258
  if (type === 'broadcast') {
@@ -17225,12 +17273,21 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17225
17273
  },
17226
17274
  sentenceId: Math.floor(Math.random() * 1000000).toString()
17227
17275
  };
17228
- this.handlePlayTTS({
17229
- content: standard_back,
17230
- onStart: function onStart() {
17231
- _this8.openAide();
17232
- _this8.pushMessage(_opts);
17233
- }
17276
+ // this.handlePlayTTS({
17277
+ // content: standard_back,
17278
+ // onStart: () => {
17279
+ // this.openAide()
17280
+ // this.pushMessage(_opts)
17281
+ // }
17282
+ // })
17283
+ this.openAide();
17284
+ this.updateSession({
17285
+ res: {},
17286
+ messages: {
17287
+ type: "FROM",
17288
+ content: standard_back
17289
+ },
17290
+ sentenceId: Math.floor(Math.random() * 1000000).toString()
17234
17291
  });
17235
17292
  }
17236
17293
  } else {}
@@ -17243,18 +17300,37 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17243
17300
  };
17244
17301
  console.log("回传信息:\n", data, query);
17245
17302
  this.socket.send(JSON.stringify(query));
17303
+ },
17304
+ submitText: function submitText() {
17305
+ console.log(this.inputContent);
17306
+ this.updateSession({
17307
+ res: {
17308
+ sessionId: this.sessionId,
17309
+ voice_id: guid(),
17310
+ sentenceId: Math.floor(Math.random() * 1000000).toString(),
17311
+ result: {
17312
+ slice_type: 2
17313
+ }
17314
+ },
17315
+ messages: {
17316
+ type: "TO",
17317
+ content: this.inputContent
17318
+ }
17319
+ });
17320
+ this.inputContent = "";
17246
17321
  }
17247
17322
  },
17248
17323
  mounted: function mounted() {
17249
17324
  this.onStart();
17250
17325
  this.getMessage();
17326
+ console.log("".concat(this.htmlFontSize, "px"));
17251
17327
  }
17252
17328
  };
17253
17329
 
17254
17330
  var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
17255
17331
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
17256
17332
  return {
17257
- "4e5d5650": _vm.htmlFontSize
17333
+ "292167ed": _vm.htmlFontSize
17258
17334
  };
17259
17335
  });
17260
17336
  };
@@ -17266,9 +17342,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
17266
17342
  /* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
17267
17343
  ;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
17268
17344
  /* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
17269
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=2d7ca1c4&prod&lang=scss&scoped=true
17270
- var SpeechRecognitionvue_type_style_index_0_id_2d7ca1c4_prod_lang_scss_scoped_true = __webpack_require__(232);
17271
- ;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=2d7ca1c4&prod&lang=scss&scoped=true
17345
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=a292773e&prod&lang=scss&scoped=true
17346
+ var SpeechRecognitionvue_type_style_index_0_id_a292773e_prod_lang_scss_scoped_true = __webpack_require__(607);
17347
+ ;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=a292773e&prod&lang=scss&scoped=true
17272
17348
 
17273
17349
  ;// ./package/SpeechRecognition/index.vue
17274
17350
 
@@ -17285,7 +17361,7 @@ var SpeechRecognition_component = normalizeComponent(
17285
17361
  staticRenderFns,
17286
17362
  false,
17287
17363
  null,
17288
- "2d7ca1c4",
17364
+ "a292773e",
17289
17365
  null
17290
17366
 
17291
17367
  )