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.
@@ -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,10 +1,9 @@
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() {
5
5
  return {
6
6
  ws: null,
7
- wsUrl: WS_URL,
8
7
  isConnected: false,
9
8
  reconnectCount: 0, // 重连尝试次数
10
9
  maxReconnectAttempts: 3 // 最大重连尝试次数
@@ -15,7 +14,7 @@ export default {
15
14
  try {
16
15
  // this.ws = new WebSocket('ws://10.2.233.41:9999');
17
16
  // 测试
18
- this.ws = new WebSocket('ws://192.168.8.9:9999');
17
+ this.ws = new WebSocket('ws://192.168.8.87/audio/ws/');
19
18
  this.ws.binaryType = 'arraybuffer';
20
19
 
21
20
  this.ws.onopen = async () => {
@@ -31290,22 +31290,16 @@ 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() {
31306
31301
  return {
31307
31302
  ws: null,
31308
- wsUrl: WS_URL,
31309
31303
  isConnected: false,
31310
31304
  reconnectCount: 0,
31311
31305
  // 重连尝试次数
@@ -31317,7 +31311,7 @@ const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音u
31317
31311
  try {
31318
31312
  // this.ws = new WebSocket('ws://10.2.233.41:9999');
31319
31313
  // 测试
31320
- this.ws = new WebSocket('ws://192.168.8.9:9999');
31314
+ this.ws = new WebSocket('ws://192.168.8.87/audio/ws/');
31321
31315
  this.ws.binaryType = 'arraybuffer';
31322
31316
  this.ws.onopen = async () => {
31323
31317
  console.log('WebSocket 连接成功');
@@ -31539,6 +31533,12 @@ class StreamParser {
31539
31533
  this.reset();
31540
31534
  }
31541
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跳转节点
31542
31542
  ;// ./components/utils/Cookie.js
31543
31543
  const setCookie = (name, value, days) => {
31544
31544
  const d = new Date();