Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sunil-paxcel opened this issue Jun 17, 2022 · 0 comments
Open

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

sunil-paxcel opened this issue Jun 17, 2022 · 0 comments

Comments

@sunil-paxcel
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant