Skip to content

not tp able to streamFile or play from the http url #22

Description

@sunil-paxcel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions