byt-lingxiao-ai 0.3.16 → 0.3.17

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/dist/index.umd.js CHANGED
@@ -31300,11 +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跳转节点
31303
31309
  ;// ./components/mixins/webSocketMixin.js
31304
31310
 
31305
31311
 
31306
31312
 
31307
- // import { WS_URL } from '../config/index.js'
31308
31313
 
31309
31314
  /* harmony default export */ var webSocketMixin = ({
31310
31315
  data() {
@@ -31321,7 +31326,7 @@ var es_typed_array_with = __webpack_require__(9577);
31321
31326
  try {
31322
31327
  // this.ws = new WebSocket('ws://10.2.233.41:9999');
31323
31328
  // 测试
31324
- this.ws = new WebSocket('ws://192.168.8.87/audio/ws/');
31329
+ this.ws = new WebSocket(WS_URL);
31325
31330
  this.ws.binaryType = 'arraybuffer';
31326
31331
  this.ws.onopen = async () => {
31327
31332
  console.log('WebSocket 连接成功');
@@ -31543,12 +31548,6 @@ class StreamParser {
31543
31548
  this.reset();
31544
31549
  }
31545
31550
  }
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
31551
  ;// ./components/utils/Cookie.js
31553
31552
  const setCookie = (name, value, days) => {
31554
31553
  const d = new Date();