@adminforth/agent 1.43.16 → 1.43.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/build.log CHANGED
@@ -60,5 +60,5 @@ custom/speech_recognition_frontend/voiceActivityDetection.ts
60
60
  custom/speech_recognition_frontend/types/
61
61
  custom/speech_recognition_frontend/types/voice-activity-detection.d.ts
62
62
 
63
- sent 1,665,569 bytes received 883 bytes 3,332,904.00 bytes/sec
64
- total size is 1,661,554 speedup is 1.00
63
+ sent 1,665,490 bytes received 883 bytes 3,332,746.00 bytes/sec
64
+ total size is 1,661,475 speedup is 1.00
@@ -1,4 +1,3 @@
1
- import { loadFile } from '@/utils';
2
1
 
3
2
  const ctx = new AudioContext();
4
3
  let standbySource: AudioBufferSourceNode | null = null;
@@ -39,12 +38,12 @@ export async function unlockAudio() {
39
38
  }
40
39
 
41
40
  export async function startStandByAudio() {
42
- console.log('Starting standby audio');
43
- const filePath = 'plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
44
- const fileUrl = await loadFile(filePath);
45
- console.log('Standby audio file URL:', fileUrl);
46
- const response = await fetch(fileUrl);
47
- console.log('Standby audio file loaded:, response:', response);
41
+ const standByAudio = '/plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
42
+ const response = await fetch(standByAudio);
43
+ console.log('status', response.status);
44
+ console.log('content-type', response.headers.get('content-type'));
45
+ console.log('response', response);
46
+
48
47
  const arrayBuffer = await response.arrayBuffer();
49
48
  const audioBuffer = await ctx.decodeAudioData(arrayBuffer);
50
49
 
@@ -1,4 +1,3 @@
1
- import { loadFile } from '@/utils';
2
1
 
3
2
  const ctx = new AudioContext();
4
3
  let standbySource: AudioBufferSourceNode | null = null;
@@ -39,12 +38,12 @@ export async function unlockAudio() {
39
38
  }
40
39
 
41
40
  export async function startStandByAudio() {
42
- console.log('Starting standby audio');
43
- const filePath = 'plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
44
- const fileUrl = await loadFile(filePath);
45
- console.log('Standby audio file URL:', fileUrl);
46
- const response = await fetch(fileUrl);
47
- console.log('Standby audio file loaded:, response:', response);
41
+ const standByAudio = '/plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
42
+ const response = await fetch(standByAudio);
43
+ console.log('status', response.status);
44
+ console.log('content-type', response.headers.get('content-type'));
45
+ console.log('response', response);
46
+
48
47
  const arrayBuffer = await response.arrayBuffer();
49
48
  const audioBuffer = await ctx.decodeAudioData(arrayBuffer);
50
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/agent",
3
- "version": "1.43.16",
3
+ "version": "1.43.17",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",