PowerShell + Speech API

I just read a blog post about using the Speech API in command-line scripts. So I had to try it but instead of using JScript, I wrote it in PowerShell. It’s so easy and fun:

$v = New-Object -ComObject SAPI.SpVoice
$v.Speak("Who let the dogs out?")