Skip to content

Instantly share code, notes, and snippets.

@chirag64
Created December 6, 2015 18:31
Show Gist options
  • Save chirag64/f098a3d00ea310c6cc8d to your computer and use it in GitHub Desktop.
Save chirag64/f098a3d00ea310c6cc8d to your computer and use it in GitHub Desktop.
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