PowerShell-for-Hackers
PowerShell-for-Hackers copied to clipboard
Fix exception thrown by, and suppress output from, the Speak function
This PR stops the Speak function from throwing an exception when it tries to enumerate voices on the SAPI.SpVoice object before it has been created.

Further, the .Speak method used in this function outputs a number that's used in apps to associate queued async streams with events. As a user though... it means nothing and as the function doesn't set the async flag, it always returns 1 anyway.
