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.
@@ -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('ws://192.168.8.87/audio/ws/');
17
+ this.ws = new WebSocket(WS_URL);
18
18
  this.ws.binaryType = 'arraybuffer';
19
19
 
20
20
  this.ws.onopen = async () => {
@@ -31290,11 +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跳转节点
31293
31299
  ;// ./components/mixins/webSocketMixin.js
31294
31300
 
31295
31301
 
31296
31302
 
31297
- // import { WS_URL } from '../config/index.js'
31298
31303
 
31299
31304
  /* harmony default export */ var webSocketMixin = ({
31300
31305
  data() {
@@ -31311,7 +31316,7 @@ var es_typed_array_with = __webpack_require__(9577);
31311
31316
  try {
31312
31317
  // this.ws = new WebSocket('ws://10.2.233.41:9999');
31313
31318
  // 测试
31314
- this.ws = new WebSocket('ws://192.168.8.87/audio/ws/');
31319
+ this.ws = new WebSocket(WS_URL);
31315
31320
  this.ws.binaryType = 'arraybuffer';
31316
31321
  this.ws.onopen = async () => {
31317
31322
  console.log('WebSocket 连接成功');
@@ -31533,12 +31538,6 @@ class StreamParser {
31533
31538
  this.reset();
31534
31539
  }
31535
31540
  }
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
31541
  ;// ./components/utils/Cookie.js
31543
31542
  const setCookie = (name, value, days) => {
31544
31543
  const d = new Date();