yxspeechrecognition 1.4.1 → 1.4.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.
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 {
|