Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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