Sapi spvoice change voice

broken image
broken image

You want to see it again? How about in one line? $speechy = New-Object –ComObject SAPI.SPVoice To start let’s see how we get hold of the API. That derailed me from finishing his video for an hour or more as I played with PowerShell and the speech API. In his continuous integration script, he demonstrates calling the text-to-speech API built into Windows. I can’t take credit for any discovery here except to point you once again to the excellent video Continuous Integration: Char by char – PowerShell by Harald Fianbakken. One of the cool bits of PowerShell is that it is very easy to call COM objects from the command line and therefore in scripts. This is a quickshot tip with some silliness thrown in for good measure.