@adminforth/agent 1.43.15 → 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,
|
|
64
|
-
total size is 1,661,
|
|
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,11 +38,12 @@ export async function unlockAudio() {
|
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
export async function startStandByAudio() {
|
|
42
|
-
|
|
43
|
-
const response = await fetch(
|
|
44
|
-
|
|
45
|
-
);
|
|
46
|
-
console.log('
|
|
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
|
+
|
|
47
47
|
const arrayBuffer = await response.arrayBuffer();
|
|
48
48
|
const audioBuffer = await ctx.decodeAudioData(arrayBuffer);
|
|
49
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,11 +38,12 @@ export async function unlockAudio() {
|
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
export async function startStandByAudio() {
|
|
42
|
-
|
|
43
|
-
const response = await fetch(
|
|
44
|
-
|
|
45
|
-
);
|
|
46
|
-
console.log('
|
|
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
|
+
|
|
47
47
|
const arrayBuffer = await response.arrayBuffer();
|
|
48
48
|
const audioBuffer = await ctx.decodeAudioData(arrayBuffer);
|
|
49
49
|
|