byt-lingxiao-ai 0.3.14 → 0.3.16
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/components/config/index.js +1 -1
- package/components/mixins/webSocketMixin.js +2 -3
- package/dist/index.common.js +8 -8
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -31300,22 +31300,16 @@ var es_typed_array_with = __webpack_require__(9577);
|
|
|
31300
31300
|
}
|
|
31301
31301
|
}
|
|
31302
31302
|
});
|
|
31303
|
-
;// ./components/config/index.js
|
|
31304
|
-
const baseUrl = window.location.host;
|
|
31305
|
-
const API_URL = `/lingxiao-byt/api/v1/mcp/ask`; // 对话
|
|
31306
|
-
const WS_URL = `ws://${baseUrl}/audio/ws`; // 语音
|
|
31307
|
-
const AUDIO_URL = '/minio/lingxiaoai/byt.mp3'; // 导览
|
|
31308
|
-
const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音url跳转节点
|
|
31309
31303
|
;// ./components/mixins/webSocketMixin.js
|
|
31310
31304
|
|
|
31311
31305
|
|
|
31312
31306
|
|
|
31307
|
+
// import { WS_URL } from '../config/index.js'
|
|
31313
31308
|
|
|
31314
31309
|
/* harmony default export */ var webSocketMixin = ({
|
|
31315
31310
|
data() {
|
|
31316
31311
|
return {
|
|
31317
31312
|
ws: null,
|
|
31318
|
-
wsUrl: WS_URL,
|
|
31319
31313
|
isConnected: false,
|
|
31320
31314
|
reconnectCount: 0,
|
|
31321
31315
|
// 重连尝试次数
|
|
@@ -31327,7 +31321,7 @@ const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音u
|
|
|
31327
31321
|
try {
|
|
31328
31322
|
// this.ws = new WebSocket('ws://10.2.233.41:9999');
|
|
31329
31323
|
// 测试
|
|
31330
|
-
this.ws = new WebSocket('ws://192.168.8.
|
|
31324
|
+
this.ws = new WebSocket('ws://192.168.8.87/audio/ws/');
|
|
31331
31325
|
this.ws.binaryType = 'arraybuffer';
|
|
31332
31326
|
this.ws.onopen = async () => {
|
|
31333
31327
|
console.log('WebSocket 连接成功');
|
|
@@ -31549,6 +31543,12 @@ class StreamParser {
|
|
|
31549
31543
|
this.reset();
|
|
31550
31544
|
}
|
|
31551
31545
|
}
|
|
31546
|
+
;// ./components/config/index.js
|
|
31547
|
+
const baseUrl = window.location.host;
|
|
31548
|
+
const API_URL = `/lingxiao-byt/api/v1/mcp/ask`; // 对话
|
|
31549
|
+
const WS_URL = (/* unused pure expression or super */ null && (`ws://${baseUrl}/audio/ws/`)); // 语音
|
|
31550
|
+
const AUDIO_URL = '/minio/lingxiaoai/byt.mp3'; // 导览
|
|
31551
|
+
const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音url跳转节点
|
|
31552
31552
|
;// ./components/utils/Cookie.js
|
|
31553
31553
|
const setCookie = (name, value, days) => {
|
|
31554
31554
|
const d = new Date();
|