yxspeechrecognition 1.4.4 → 1.4.6
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 +23 -16
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +36 -29
- package/YxSpeechRecognition.umd.js.map +1 -1
- package/YxSpeechRecognition.umd.min.js +2 -2
- package/YxSpeechRecognition.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
14
|
+
/***/ 63:
|
|
15
15
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16
16
|
|
|
17
17
|
"use strict";
|
|
@@ -25,7 +25,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25
25
|
|
|
26
26
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
27
27
|
// Module
|
|
28
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-
|
|
28
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-723aa2f2]{position:absolute;right:calc(var(--1812e417)*81.43);top:calc(var(--1812e417)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-723aa2f2] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-723aa2f2]{display:grid;grid-template-rows:max-content 1fr;position:absolute;left:calc(var(--1812e417)*81.38);top:calc(var(--1812e417)*17.43);pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--1812e417)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-723aa2f2]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--1812e417)*2.29);padding:0 calc(var(--1812e417)*.76);box-sizing:border-box;background:linear-gradient(270deg,rgba(0,126,245,.94),rgba(54,141,253,.75) 70%,rgba(60,125,255,.51));border-radius:calc(var(--1812e417)*.57) calc(var(--1812e417)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-723aa2f2]{display:flex;align-items:center;gap:calc(var(--1812e417)*.38)}.yx-speech-recognition .box .title-icon img[data-v-723aa2f2]{width:calc(var(--1812e417)*1);height:calc(var(--1812e417)*1)}.yx-speech-recognition .box .title-icon span[data-v-723aa2f2]{font-size:calc(var(--1812e417)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-723aa2f2]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-723aa2f2]{width:calc(var(--1812e417)*1.1)}.yx-speech-recognition .box .content[data-v-723aa2f2]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:url(http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon9-pl26do__.png) no-repeat center 35%;color:#fff}.yx-speech-recognition .box .content span[data-v-723aa2f2]{margin-top:calc(var(--1812e417)*7.5);font-size:calc(var(--1812e417)*1)}.yx-speech-recognition .box .message-list[data-v-723aa2f2]{overflow:hidden;padding:calc(var(--1812e417)*.58);box-sizing:border-box;padding-right:calc(var(--1812e417)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-723aa2f2]{height:100%;display:flex;flex-direction:column;gap:calc(var(--1812e417)*.53);overflow-y:overlay}.yx-speech-recognition .displayAssistant[data-v-723aa2f2]{position:absolute;right:calc(var(--1812e417)*74.17);top:calc(var(--1812e417)*3.19);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-723aa2f2]{width:calc(var(--1812e417)*3.76);height:calc(var(--1812e417)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-723aa2f2]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-723aa2f2]{position:absolute;top:0;left:calc(var(--1812e417)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-723aa2f2]{display:block;max-width:calc(var(--1812e417)*19.21);font-size:calc(var(--1812e417)*1);color:#fff;padding:calc(var(--1812e417)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--1812e417)*.57) 0 #d4d9ff;border-radius:calc(var(--1812e417)*.27);margin-left:calc(var(--1812e417)*.49);word-break:break-all}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-723aa2f2]:before{border-top:calc(var(--1812e417)*.25) solid transparent;border-bottom:calc(var(--1812e417)*.25) solid transparent;border-right:calc(var(--1812e417)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--1812e417)*-.46));left:0;top:calc(var(--1812e417)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--1812e417)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]:before{border-right:calc(var(--1812e417)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-723aa2f2]:after{border-top:calc(var(--1812e417)*.25) solid transparent;border-bottom:calc(var(--1812e417)*.25) solid transparent;border-right:calc(var(--1812e417)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--1812e417)*-.46));left:0;top:calc(var(--1812e417)*.48)}", ""]);
|
|
29
29
|
// Exports
|
|
30
30
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
31
31
|
|
|
@@ -750,19 +750,19 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAMAAABG
|
|
|
750
750
|
|
|
751
751
|
/***/ }),
|
|
752
752
|
|
|
753
|
-
/***/
|
|
753
|
+
/***/ 973:
|
|
754
754
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
755
755
|
|
|
756
756
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
757
757
|
|
|
758
758
|
// load the styles
|
|
759
|
-
var content = __webpack_require__(
|
|
759
|
+
var content = __webpack_require__(63);
|
|
760
760
|
if(content.__esModule) content = content.default;
|
|
761
761
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
762
762
|
if(content.locals) module.exports = content.locals;
|
|
763
763
|
// add the styles to the DOM
|
|
764
764
|
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
765
|
-
var update = add("
|
|
765
|
+
var update = add("074f7e04", content, true, {"sourceMap":false,"shadowMode":false});
|
|
766
766
|
|
|
767
767
|
/***/ })
|
|
768
768
|
|
|
@@ -880,7 +880,7 @@ if (typeof window !== 'undefined') {
|
|
|
880
880
|
// Indicate to webpack that this file can be concatenated
|
|
881
881
|
/* harmony default export */ var setPublicPath = (null);
|
|
882
882
|
|
|
883
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
883
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=template&id=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=
|
|
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__(672);
|
|
@@ -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
|
-
|
|
16622
|
-
|
|
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
|
-
"
|
|
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-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=
|
|
17073
|
-
var
|
|
17074
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17079
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=723aa2f2&prod&lang=scss&scoped=true
|
|
17080
|
+
var SpeechRecognitionvue_type_style_index_0_id_723aa2f2_prod_lang_scss_scoped_true = __webpack_require__(973);
|
|
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
|
-
"
|
|
17098
|
+
"723aa2f2",
|
|
17092
17099
|
null
|
|
17093
17100
|
|
|
17094
17101
|
)
|