Skip to content

Instantly share code, notes, and snippets.

@staxmanade
Created August 30, 2011 02:57
Show Gist options
  • Save staxmanade/1180060 to your computer and use it in GitHub Desktop.
Save staxmanade/1180060 to your computer and use it in GitHub Desktop.
Fun(for a 4yr old) - little powershell speak what you type (
function Start-The-Fun()
{
$voice = new-object -com SAPI.SpVoice;
while($true)
{
write-host "->" -NoNewLine;
$msg = read-host;
$Voice.Speak( $msg, 1 ) | out-null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment