ding-dong
ding-dong copied to clipboard
not tp able to streamFile or play from the http url
On nodejs public folder i have some audio files. that i want to play with streamFile
const filePath = `http://host.docker.internal:8081/audio/${voiceFileName}.wav`;
return elementApi.environment.variables.context.streamFile(filePath)
.then((response) => {
console.log("response played", response);
return response;
})
.catch((err) => {
console.log("error", err)
});
the filePath that i have given, is accessible through browser and even using request api i checked that url is valid.
But agi server does not play the sound.