Created
December 6, 2015 18:31
-
-
Save chirag64/f098a3d00ea310c6cc8d to your computer and use it in GitHub Desktop.
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
Dim speaks, speech | |
If (Minute(Time()) = 0) Then | |
speaks = "It is now " & (((Hour(Time()) + 11) Mod 12) + 1) & " O' clock" | |
Else | |
speaks = "The time is now " & (((Hour(Time()) + 11) Mod 12) + 1) & " " & Minute(Time()) | |
End If | |
Set speech = CreateObject("sapi.spvoice") | |
speech.Speak speaks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment