yxspeechrecognition 1.4.4 → 1.4.5

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,23 +11,7 @@
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 151:
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__(235);
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("e2f1c634", content, true, {"sourceMap":false,"shadowMode":false});
27
-
28
- /***/ }),
29
-
30
- /***/ 235:
14
+ /***/ 39:
31
15
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
32
16
 
33
17
  "use strict";
@@ -41,7 +25,7 @@ __webpack_require__.r(__webpack_exports__);
41
25
 
42
26
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
43
27
  // Module
44
- ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-3b53aea8]{position:absolute;right:calc(var(--288f20b9)*81.43);top:calc(var(--288f20b9)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-3b53aea8] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-3b53aea8]{display:grid;grid-template-rows:max-content 1fr;position:absolute;left:calc(var(--288f20b9)*81.38);top:calc(var(--288f20b9)*17.43);pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--288f20b9)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-3b53aea8]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--288f20b9)*2.29);padding:0 calc(var(--288f20b9)*.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(--288f20b9)*.57) calc(var(--288f20b9)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-3b53aea8]{display:flex;align-items:center;gap:calc(var(--288f20b9)*.38)}.yx-speech-recognition .box .title-icon img[data-v-3b53aea8]{width:calc(var(--288f20b9)*1);height:calc(var(--288f20b9)*1)}.yx-speech-recognition .box .title-icon span[data-v-3b53aea8]{font-size:calc(var(--288f20b9)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-3b53aea8]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-3b53aea8]{width:calc(var(--288f20b9)*1.1)}.yx-speech-recognition .box .content[data-v-3b53aea8]{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-3b53aea8]{margin-top:calc(var(--288f20b9)*7.5);font-size:calc(var(--288f20b9)*1)}.yx-speech-recognition .box .message-list[data-v-3b53aea8]{overflow:hidden;padding:calc(var(--288f20b9)*.58);box-sizing:border-box;padding-right:calc(var(--288f20b9)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-3b53aea8]{height:100%;display:flex;flex-direction:column;gap:calc(var(--288f20b9)*.53);overflow-y:overlay}.yx-speech-recognition .displayAssistant[data-v-3b53aea8]{position:absolute;right:calc(var(--288f20b9)*74.17);top:calc(var(--288f20b9)*3.19);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-3b53aea8]{width:calc(var(--288f20b9)*3.76);height:calc(var(--288f20b9)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-3b53aea8]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-3b53aea8]{position:absolute;top:0;left:calc(var(--288f20b9)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-3b53aea8]{display:block;max-width:calc(var(--288f20b9)*19.21);font-size:calc(var(--288f20b9)*1);color:#fff;padding:calc(var(--288f20b9)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-3b53aea8]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--288f20b9)*.57) 0 #d4d9ff;border-radius:calc(var(--288f20b9)*.27);margin-left:calc(var(--288f20b9)*.49);word-break:break-all}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-3b53aea8]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-3b53aea8]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-3b53aea8]:before{border-top:calc(var(--288f20b9)*.25) solid transparent;border-bottom:calc(var(--288f20b9)*.25) solid transparent;border-right:calc(var(--288f20b9)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--288f20b9)*-.46));left:0;top:calc(var(--288f20b9)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-3b53aea8]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--288f20b9)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-3b53aea8]:before{border-right:calc(var(--288f20b9)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-3b53aea8]:after{border-top:calc(var(--288f20b9)*.25) solid transparent;border-bottom:calc(var(--288f20b9)*.25) solid transparent;border-right:calc(var(--288f20b9)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--288f20b9)*-.46));left:0;top:calc(var(--288f20b9)*.48)}", ""]);
28
+ ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-723aa2f2]{position:absolute;right:calc(var(--1812e417)*81.43);top:calc(var(--1812e417)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-723aa2f2] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-723aa2f2]{display:grid;grid-template-rows:max-content 1fr;position:absolute;left:calc(var(--1812e417)*81.38);top:calc(var(--1812e417)*17.43);pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--1812e417)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-723aa2f2]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--1812e417)*2.29);padding:0 calc(var(--1812e417)*.76);box-sizing:border-box;background:linear-gradient(270deg,rgba(0,126,245,.94),rgba(54,141,253,.75) 70%,rgba(60,125,255,.51));border-radius:calc(var(--1812e417)*.57) calc(var(--1812e417)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-723aa2f2]{display:flex;align-items:center;gap:calc(var(--1812e417)*.38)}.yx-speech-recognition .box .title-icon img[data-v-723aa2f2]{width:calc(var(--1812e417)*1);height:calc(var(--1812e417)*1)}.yx-speech-recognition .box .title-icon span[data-v-723aa2f2]{font-size:calc(var(--1812e417)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-723aa2f2]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-723aa2f2]{width:calc(var(--1812e417)*1.1)}.yx-speech-recognition .box .content[data-v-723aa2f2]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:url(http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon9-pl26do__.png) no-repeat center 35%;color:#fff}.yx-speech-recognition .box .content span[data-v-723aa2f2]{margin-top:calc(var(--1812e417)*7.5);font-size:calc(var(--1812e417)*1)}.yx-speech-recognition .box .message-list[data-v-723aa2f2]{overflow:hidden;padding:calc(var(--1812e417)*.58);box-sizing:border-box;padding-right:calc(var(--1812e417)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-723aa2f2]{height:100%;display:flex;flex-direction:column;gap:calc(var(--1812e417)*.53);overflow-y:overlay}.yx-speech-recognition .displayAssistant[data-v-723aa2f2]{position:absolute;right:calc(var(--1812e417)*74.17);top:calc(var(--1812e417)*3.19);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-723aa2f2]{width:calc(var(--1812e417)*3.76);height:calc(var(--1812e417)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-723aa2f2]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-723aa2f2]{position:absolute;top:0;left:calc(var(--1812e417)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-723aa2f2]{display:block;max-width:calc(var(--1812e417)*19.21);font-size:calc(var(--1812e417)*1);color:#fff;padding:calc(var(--1812e417)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--1812e417)*.57) 0 #d4d9ff;border-radius:calc(var(--1812e417)*.27);margin-left:calc(var(--1812e417)*.49);word-break:break-all}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:before{border-top:calc(var(--1812e417)*.25) solid transparent;border-bottom:calc(var(--1812e417)*.25) solid transparent;border-right:calc(var(--1812e417)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--1812e417)*-.46));left:0;top:calc(var(--1812e417)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--1812e417)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]:before{border-right:calc(var(--1812e417)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]:after{border-top:calc(var(--1812e417)*.25) solid transparent;border-bottom:calc(var(--1812e417)*.25) solid transparent;border-right:calc(var(--1812e417)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--1812e417)*-.46));left:0;top:calc(var(--1812e417)*.48)}", ""]);
45
29
  // Exports
46
30
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
47
31
 
@@ -424,6 +408,22 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADy
424
408
 
425
409
  /***/ }),
426
410
 
411
+ /***/ 435:
412
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
413
+
414
+ // style-loader: Adds some css to the DOM by adding a <style> tag
415
+
416
+ // load the styles
417
+ var content = __webpack_require__(39);
418
+ if(content.__esModule) content = content.default;
419
+ if(typeof content === 'string') content = [[module.id, content, '']];
420
+ if(content.locals) module.exports = content.locals;
421
+ // add the styles to the DOM
422
+ var add = (__webpack_require__(258)/* ["default"] */ .A)
423
+ var update = add("a7e19170", content, true, {"sourceMap":false,"shadowMode":false});
424
+
425
+ /***/ }),
426
+
427
427
  /***/ 601:
428
428
  /***/ (function(module) {
429
429
 
@@ -880,7 +880,7 @@ if (typeof window !== 'undefined') {
880
880
  // Indicate to webpack that this file can be concatenated
881
881
  /* harmony default export */ var setPublicPath = (null);
882
882
 
883
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-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=3b53aea8&scoped=true
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=723aa2f2&scoped=true
884
884
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
885
885
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
886
886
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -957,7 +957,7 @@ var staticRenderFns = [function () {
957
957
  }), _c('span', [_vm._v("小安助手")])]);
958
958
  }];
959
959
 
960
- ;// ./package/SpeechRecognition/index.vue?vue&type=template&id=3b53aea8&scoped=true
960
+ ;// ./package/SpeechRecognition/index.vue?vue&type=template&id=723aa2f2&scoped=true
961
961
 
962
962
  // EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
963
963
  var cryptojs = __webpack_require__(950);
@@ -1219,7 +1219,7 @@ var NewCredential = /*#__PURE__*/function () {
1219
1219
  key: "formatSignString",
1220
1220
  value: function formatSignString(params) {
1221
1221
  var strParam = '';
1222
- var signStr = '10.97.36.102:9090/realtime_asr_ws_private';
1222
+ var signStr = '10.97.245.1/xbtxws/realtime_asr_ws_private';
1223
1223
  // let signStr = 'asr.cloud.tencent.com/asr/v2/'
1224
1224
  // let signStr = "aiasr.baoan.gov.cn:9191/realtime_asr_ws_private";
1225
1225
  if (this.config['appid']) {
@@ -1454,7 +1454,7 @@ var SpeechRecognizer = /*#__PURE__*/function () {
1454
1454
  break;
1455
1455
  }
1456
1456
  // const wsUrl = `${servicepath}?${urlParams.toString()}`;
1457
- this.socket = new WebSocket("ws://".concat(url));
1457
+ this.socket = new WebSocket("wss://".concat(url));
1458
1458
  // this.socket = new WebSocket('ws://10.97.36.102:9090/realtime_asr_ws_private')
1459
1459
  // this.socket = new _WebSocket(servicepath,
1460
1460
  // {
@@ -16537,6 +16537,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16537
16537
  Message: Message
16538
16538
  },
16539
16539
  props: {
16540
+ // 小宝语音框位置
16540
16541
  imgPosition: {
16541
16542
  type: Object,
16542
16543
  default: function _default() {
@@ -16546,6 +16547,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16546
16547
  };
16547
16548
  }
16548
16549
  },
16550
+ // 弹窗位置
16549
16551
  boxPosition: {
16550
16552
  type: Object,
16551
16553
  default: function _default() {
@@ -16555,6 +16557,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16555
16557
  };
16556
16558
  }
16557
16559
  },
16560
+ // 弹窗大小
16558
16561
  boxSize: {
16559
16562
  type: Object,
16560
16563
  default: function _default() {
@@ -16564,9 +16567,10 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16564
16567
  };
16565
16568
  }
16566
16569
  },
16570
+ // 字体大小
16567
16571
  size: {
16568
16572
  type: String,
16569
- default: "large"
16573
+ default: "large" // ["large", "medium"]
16570
16574
  }
16571
16575
  },
16572
16576
  data: function data() {
@@ -16618,9 +16622,10 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16618
16622
  watch: {
16619
16623
  voiecContent: function voiecContent(val) {
16620
16624
  console.log("===============getContent==============", val);
16621
- this.$emit("getContent", SpeechRecognitionvue_type_script_lang_js_objectSpread(SpeechRecognitionvue_type_script_lang_js_objectSpread({}, val), {}, {
16622
- cim: "cimapp-mysb-sx"
16623
- }));
16625
+ if (Object.keys(val).length > 0) {
16626
+ // console.log("===============getContent1111111==============", val)
16627
+ this.$emit("getContent", SpeechRecognitionvue_type_script_lang_js_objectSpread({}, val));
16628
+ }
16624
16629
  },
16625
16630
  boxShow: function boxShow(val) {
16626
16631
  if (val) this.wakeUpTime = new Date().getTime();else this.wakeUpTime = 0;
@@ -17051,13 +17056,15 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17051
17056
  mounted: function mounted() {
17052
17057
  this.onStart();
17053
17058
  this.getMessage();
17059
+ // this.openAide()
17060
+ // this.updateSession({ res: {sessionId: "32883291839",voice_id: "8923-dskfas-32431-74932132", sentenceId: "83247038140313", result: {slice_type: 2}}, messages: { type: "TO", content: "觉得覅撒记得" } });
17054
17061
  }
17055
17062
  };
17056
17063
 
17057
17064
  var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
17058
17065
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
17059
17066
  return {
17060
- "288f20b9": _vm.htmlFontSize
17067
+ "1812e417": _vm.htmlFontSize
17061
17068
  };
17062
17069
  });
17063
17070
  };
@@ -17069,9 +17076,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
17069
17076
  /* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
17070
17077
  ;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
17071
17078
  /* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
17072
- // 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=3b53aea8&prod&lang=scss&scoped=true
17073
- var SpeechRecognitionvue_type_style_index_0_id_3b53aea8_prod_lang_scss_scoped_true = __webpack_require__(151);
17074
- ;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=3b53aea8&prod&lang=scss&scoped=true
17079
+ // 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=723aa2f2&prod&lang=scss&scoped=true
17080
+ var SpeechRecognitionvue_type_style_index_0_id_723aa2f2_prod_lang_scss_scoped_true = __webpack_require__(435);
17081
+ ;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=723aa2f2&prod&lang=scss&scoped=true
17075
17082
 
17076
17083
  ;// ./package/SpeechRecognition/index.vue
17077
17084
 
@@ -17088,7 +17095,7 @@ var SpeechRecognition_component = normalizeComponent(
17088
17095
  staticRenderFns,
17089
17096
  false,
17090
17097
  null,
17091
- "3b53aea8",
17098
+ "723aa2f2",
17092
17099
  null
17093
17100
 
17094
17101
  )