yxspeechrecognition 1.4.1 → 1.4.3
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.js
CHANGED
|
@@ -350,7 +350,7 @@ class Xt {
|
|
|
350
350
|
}, this.query = i || null;
|
|
351
351
|
}
|
|
352
352
|
formatSignString(i) {
|
|
353
|
-
let t = "", e = "
|
|
353
|
+
let t = "", e = "10.97.36.102:9090/realtime_asr_ws_private";
|
|
354
354
|
this.config.appid && (e += this.config.appid);
|
|
355
355
|
const h = Object.keys(i);
|
|
356
356
|
h.sort();
|
|
@@ -433,7 +433,7 @@ class $i {
|
|
|
433
433
|
if (Object.entries(h).forEach(([g, u]) => {
|
|
434
434
|
s.append(g, u);
|
|
435
435
|
}), "WebSocket" in window)
|
|
436
|
-
this.socket = new WebSocket(`
|
|
436
|
+
this.socket = new WebSocket(`ws://${i}`);
|
|
437
437
|
else if ("MozWebSocket" in window)
|
|
438
438
|
this.socket = new MozWebSocket(`wss://${i}`);
|
|
439
439
|
else {
|
|
@@ -26828,7 +26828,7 @@ const bs = () => {
|
|
|
26828
26828
|
},
|
|
26829
26829
|
setup(n) {
|
|
26830
26830
|
Xi((h) => ({
|
|
26831
|
-
|
|
26831
|
+
"73896f80": e.value
|
|
26832
26832
|
}));
|
|
26833
26833
|
const i = {
|
|
26834
26834
|
NONE: "NONE",
|
|
@@ -26865,7 +26865,7 @@ const bs = () => {
|
|
|
26865
26865
|
])
|
|
26866
26866
|
], 2));
|
|
26867
26867
|
}
|
|
26868
|
-
}, Es = /* @__PURE__ */ Rt(Os, [["__scopeId", "data-v-
|
|
26868
|
+
}, Es = /* @__PURE__ */ Rt(Os, [["__scopeId", "data-v-1c543ad4"]]), Ps = { class: "yx-speech-recognition" }, Rs = { class: "title" }, Us = {
|
|
26869
26869
|
key: 0,
|
|
26870
26870
|
class: "content"
|
|
26871
26871
|
}, Cs = {
|
|
@@ -26892,6 +26892,13 @@ const bs = () => {
|
|
|
26892
26892
|
top: "400px"
|
|
26893
26893
|
}
|
|
26894
26894
|
},
|
|
26895
|
+
boxSize: {
|
|
26896
|
+
type: Object,
|
|
26897
|
+
default: {
|
|
26898
|
+
width: "750px",
|
|
26899
|
+
height: "676px"
|
|
26900
|
+
}
|
|
26901
|
+
},
|
|
26895
26902
|
size: {
|
|
26896
26903
|
type: String,
|
|
26897
26904
|
default: "large"
|
|
@@ -26900,7 +26907,7 @@ const bs = () => {
|
|
|
26900
26907
|
emits: ["getContent"],
|
|
26901
26908
|
setup(n, { emit: i }) {
|
|
26902
26909
|
Xi((p) => ({
|
|
26903
|
-
"
|
|
26910
|
+
"12a09f9d": W.value
|
|
26904
26911
|
}));
|
|
26905
26912
|
const t = i, e = n, h = Z(null);
|
|
26906
26913
|
Z([]);
|
|
@@ -26998,7 +27005,7 @@ const bs = () => {
|
|
|
26998
27005
|
_(u) ? (gn(), rn("div", {
|
|
26999
27006
|
key: 0,
|
|
27000
27007
|
class: "box",
|
|
27001
|
-
style: Gn(n.boxPosition)
|
|
27008
|
+
style: Gn({ ...n.boxPosition, ...n.boxSize })
|
|
27002
27009
|
}, [
|
|
27003
27010
|
F("div", Rs, [
|
|
27004
27011
|
f[3] || (f[3] = F("div", { class: "title-icon" }, [
|
|
@@ -27051,7 +27058,7 @@ const bs = () => {
|
|
|
27051
27058
|
], 4)
|
|
27052
27059
|
]));
|
|
27053
27060
|
}
|
|
27054
|
-
}), Ds = /* @__PURE__ */ Rt(Ns, [["__scopeId", "data-v-
|
|
27061
|
+
}), Ds = /* @__PURE__ */ Rt(Ns, [["__scopeId", "data-v-1c703851"]]), Fs = [Ds], Bs = (n) => {
|
|
27055
27062
|
for (const i of Fs)
|
|
27056
27063
|
n.component(i.name, i);
|
|
27057
27064
|
return n;
|