Getting Started with Amazon Polly using Node.js
Taron Foxworth

Hello, Taron 
I want to know how to stop the streaming after the all text to speech completed. Because In my case I want to redirect in my php project and then on other page I have written CURL call for this service. But its not complete call and text to speech is complete but the page still loading issue….

if (data.AudioStream instanceof Buffer) { 
bufferStream = new Stream.PassThrough() bufferStream.end(data.AudioStream) 

In above code you have any idea how to stop load or stop after stream complete ?

Please Help me to solve this issue