Making PowerShell talk

Here are a few basic lines of PowerShell code to get your computer to talk to you.

Add-Type -AssemblyName System.speech

$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer

$speak.Speak("Hello world")

It’s simple code, but it makes my children smile.

You can quickly launch PowerShell on most Windows computers by right-clicking the Start button and clicking Windows PowerShell.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.