Getting Started with Amazon Polly using Node.js
Taron Foxworth
1573

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) 
bufferStream.pipe(Player) 
}

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

Please Help me to solve this issue

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.