Skip to content

Instantly share code, notes, and snippets.

@NicoNekoru
Created July 15, 2020 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NicoNekoru/8d45f7638a8825e1bfbd9a2452f51919 to your computer and use it in GitHub Desktop.
Save NicoNekoru/8d45f7638a8825e1bfbd9a2452f51919 to your computer and use it in GitHub Desktop.
Add-Type -AssemblyName System.speech
while ($true)
{
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$words = read-host -prompt "What do you want to say?"
$speak.Speak($words)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment