Created
March 16, 2021 15:41
-
-
Save tigorlazuardi/9ad40dace40a060898d2d8c40b88724f to your computer and use it in GitHub Desktop.
Read current time outloud (Windows Powershell Script)
This file contains hidden or 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; | |
$read = [string]::Format("It's {0}", $(Get-Date -Format "hh tt")); | |
(New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak($read); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment