Windows Trick: How To Make Your Computer To Speak Out Time At Every Hour

Here is an interesting trick that makes your computer to speak out the time automatically at every hour, like making your own Big Ben Clock on your Windows.

Firstly

Create a file with the following lines codes:

Dim speaks, speech
speaks = “It is ” & hour(time) & ” O’clock”
Set speech = CreateObject(“sapi.spvoice”)
speech.Speak speaks

And save as .VBS file. For example, time.vbs. Right, I’ve made it easy for you that you can just right-click the link and choose Save As.. to download it from this website.

You can double click the file to test out how it sounds.

Secondly

Let’s schedule it to run every hour.

1. Open the Task Scheduler, you can press WIN + R, type in taskschd.msc, and hit Enter to start.

Win+R Taskschd to start Task Scheduler

2. In Task Scheduler, click Create Task under Action.

3. Give a name under General tab, such as Time.

4. Add a trigger to run the task repeatedly very hour. Like below:

Task Scheduler - Trigger repeat hourly

5. Add an action under Actions tab, like below:

Task Manager - Add an action

6. That’s it. Click Ok to close out it.

Congratulations. You’ve successfully turned your computer into a famous Big Ben Clock with a nice male voice speaking out time at every hour.

/credit goes to my MVP fellow Michael Martin/

/update on Oct 28, 2013/

If you are interested in how to run a script at logon or logoff, check out this post that outlines the setup how to make this time.vbs to run during a logoff process.

Kent Chen

Microsoft MVP, IT Professional, Developer, Geek, and the co-founder of Next of Windows.

Last updated: 08/04/2014

Posted in: Tips & Tricks
Discover more: ,

Leave a Reply

Notify of
avatar
johnny
Guest

How can you make it so that it reads it out in 12hour format and not 24hour format? thanks 🙂

Kent Chen
Guest

Replace the 2nd line with the following. It uses the system time format instead of 24hour format.

speaks = “It is ” & FormatDateTime(time,3)

Lance
Guest
Hi, I tried this PC trick on my Windows 7 x64-bit and it worked flawlessly but when I tried it on another PC running Windows 8, it keeps on asking what application should Windows 8 use to open the .vbs file. If I double click the vbs file in windows 8, a male voice speaks the message but after putting it on the taskschd.msc Windows 8 opens a pop-up that asks which application should it use to open the file. What application should I choose? I tried using Narrator but it won’t open the vbs file. Can you feature a… Read more »
Kent Chen
Guest

I think it’s the Windows Based Script Host (wscript.exe) that runs this VBScript.

I will test the speaking of the log-off message and may post a separate post for it.

Lance
Guest

Okay, I’ll try if iy works. Thanks again, 🙂

Kent Chen
Guest

Check out this post to see how you can run it at logoff.

http://www.nextofwindows.com/how-to-run-a-script-or-command-at-logoff-in-windows-7-8/

Lance
Guest

Hi, Mr. Chen. Thanks for the new post on how to make Windows talk at logoff. I will try that now on my PC with Windows 7.

As for my other PC with Windows 8, still no luck at making it speak. I already selected the wscript.exe every time its asks what app to use to open the script but Windows 8 keeps on bugging me how it will open the file.

So I will try this logoff trick on my Windows 7 pc… Windows 7 is easier to tinker with… :0)

Thanks again, Sir!

Lance
Guest

Thanks for the new trick sir. I will try it out immediately.

More power to your website!!!

wpDiscuz