We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4a20bb commit 06c1cc8Copy full SHA for 06c1cc8
1 file changed
custom/composables/agentAudio/utils.ts
@@ -40,9 +40,10 @@ export async function unlockAudio() {
40
41
export async function startStandByAudio() {
42
console.log('Starting standby audio');
43
- const response = await fetch(
44
- loadFile('plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3')
45
- );
+ const filePath = 'plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
+ const fileUrl = await loadFile(filePath);
+ console.log('Standby audio file URL:', fileUrl);
46
+ const response = await fetch(fileUrl);
47
console.log('Standby audio file loaded:, response:', response);
48
const arrayBuffer = await response.arrayBuffer();
49
const audioBuffer = await ctx.decodeAudioData(arrayBuffer);
0 commit comments