ding-dong icon indicating copy to clipboard operation
ding-dong copied to clipboard

not tp able to streamFile or play from the http url

Open sunil-paxcel opened this issue 2 years ago • 0 comments

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.

sunil-paxcel avatar Jun 17 '22 11:06 sunil-paxcel