Created
July 15, 2020 00:28
-
-
Save NicoNekoru/8d45f7638a8825e1bfbd9a2452f51919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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