Getting Your Computer to Talk to You With PowerShell

I decided to write this blog just to show something funny and interesting that you can do with your Windows PowerShell Command-Line. Please note that in order for this to work you must be either using Windows 8.1, Windows Server 2012, or download and install either PowerShell 3 or 4 on Windows 7.

Let's get started:

Open up the windows PowerShell command line and type:

Add-Type -AssemblyName System.Speech

Now type:

$computer = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer

Your computer now knows how to talk back to you. In order for it do so all you have to do is use $computer.speak("anything you want").

$computer.speak("Hello master what can I do for you today?")

There's one new thing added with PowerShell, Register-ScheduledJob, the new Windows equivalent of Cron jobs. So if you stop to think about it for a second this means that if you share a computer with someone else, of if you have access to someone else's computer you would be able have the computer speak random things, at random times. If you would like more information on how to do that head over to this blog post where he goes over a fairly detailed description of what and how he did it.

Paulo Diniz