PowerShell

Play with Speech Synthesizer using PowerShell and Node JS

This blog post is to demo the speech synthesizer using PowerShell. What’s new? Well nothing, except blending the PowerShell script with Node JS. To know about Speech Synthesizer refer MSDN – Reference for PowerShell is captured in idera PowerShell Tip (Speech-Week) Yes, this reminded a project I delivered for one of our Dutch customer!

Now, it’s time to click and convert text to speech! Let’s make it as simple as possible! The speech page is illustrated below!

PowerShell Script

Pretty straight forward! The script accepts a parameter $Text and we pass value from our node web application.

Server.JS

We have created two routes i.e GET and POST for ‘/Speech’ where the GET renders the speech.pug and POST calls the PowerShell script. Closer look to pass the value for the PowerShell parameter

speech.pug

Use your favorite bootstrap to make your web application glossy! See you all in my next blog post! Enjoy PowerShell!

Leave a Reply

Your email address will not be published. Required fields are marked *