byt-lingxiao-ai 0.3.15 → 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 -2
- package/dist/index.common.js +8 -7
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +8 -7
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const baseUrl = window.location.host;
|
|
2
2
|
|
|
3
3
|
export const API_URL = `/lingxiao-byt/api/v1/mcp/ask`; // 对话
|
|
4
|
-
export const WS_URL = `ws://${baseUrl}/audio/ws
|
|
4
|
+
export const WS_URL = `ws://${baseUrl}/audio/ws/`; // 语音
|
|
5
5
|
export const AUDIO_URL = '/minio/lingxiaoai/byt.mp3'; // 导览
|
|
6
6
|
export const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音url跳转节点
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WS_URL } from '../config/index.js'
|
|
1
|
+
// import { WS_URL } from '../config/index.js'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
data() {
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
try {
|
|
15
15
|
// this.ws = new WebSocket('ws://10.2.233.41:9999');
|
|
16
16
|
// 测试
|
|
17
|
-
this.ws = new WebSocket(
|
|
17
|
+
this.ws = new WebSocket('ws://192.168.8.87/audio/ws/');
|
|
18
18
|
this.ws.binaryType = 'arraybuffer';
|
|
19
19
|
|
|
20
20
|
this.ws.onopen = async () => {
|
package/dist/index.common.js
CHANGED
|
@@ -31290,16 +31290,11 @@ var es_typed_array_with = __webpack_require__(9577);
|
|
|
31290
31290
|
}
|
|
31291
31291
|
}
|
|
31292
31292
|
});
|
|
31293
|
-
;// ./components/config/index.js
|
|
31294
|
-
const baseUrl = window.location.host;
|
|
31295
|
-
const API_URL = `/lingxiao-byt/api/v1/mcp/ask`; // 对话
|
|
31296
|
-
const WS_URL = `ws://${baseUrl}/audio/ws`; // 语音
|
|
31297
|
-
const AUDIO_URL = '/minio/lingxiaoai/byt.mp3'; // 导览
|
|
31298
|
-
const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音url跳转节点
|
|
31299
31293
|
;// ./components/mixins/webSocketMixin.js
|
|
31300
31294
|
|
|
31301
31295
|
|
|
31302
31296
|
|
|
31297
|
+
// import { WS_URL } from '../config/index.js'
|
|
31303
31298
|
|
|
31304
31299
|
/* harmony default export */ var webSocketMixin = ({
|
|
31305
31300
|
data() {
|
|
@@ -31316,7 +31311,7 @@ const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音u
|
|
|
31316
31311
|
try {
|
|
31317
31312
|
// this.ws = new WebSocket('ws://10.2.233.41:9999');
|
|
31318
31313
|
// 测试
|
|
31319
|
-
this.ws = new WebSocket(
|
|
31314
|
+
this.ws = new WebSocket('ws://192.168.8.87/audio/ws/');
|
|
31320
31315
|
this.ws.binaryType = 'arraybuffer';
|
|
31321
31316
|
this.ws.onopen = async () => {
|
|
31322
31317
|
console.log('WebSocket 连接成功');
|
|
@@ -31538,6 +31533,12 @@ class StreamParser {
|
|
|
31538
31533
|
this.reset();
|
|
31539
31534
|
}
|
|
31540
31535
|
}
|
|
31536
|
+
;// ./components/config/index.js
|
|
31537
|
+
const baseUrl = window.location.host;
|
|
31538
|
+
const API_URL = `/lingxiao-byt/api/v1/mcp/ask`; // 对话
|
|
31539
|
+
const WS_URL = (/* unused pure expression or super */ null && (`ws://${baseUrl}/audio/ws/`)); // 语音
|
|
31540
|
+
const AUDIO_URL = '/minio/lingxiaoai/byt.mp3'; // 导览
|
|
31541
|
+
const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音url跳转节点
|
|
31541
31542
|
;// ./components/utils/Cookie.js
|
|
31542
31543
|
const setCookie = (name, value, days) => {
|
|
31543
31544
|
const d = new Date();
|