Give System Events A Voice

Computers can talk, it is a feature that we take for granted. It is rarely used in modern setups, but imagine if your computer didn’t sound like a creepy machine that’s determined to murder you, instead, it wants to keep you aware of what’s happening under the hood.

So, how will this work?

Imagine your OS is about to start downloading updates, for example the Windows Update is scheduled to start downloading and installing the newest security patches, before the entire process begins a system bell rings (the sound which notifies you that something is happening) and your computer simply states “New system updates are available, commencing download”.
You are aware that you should expect certain resources to be drained because the system is about to download and install updates.

A setup like that would allow for transparency across the OS, aimed at new users, they would suffer less frustration by being completely aware of what is happening to their computer at all times. Why is the internet slow? Because updates are downloading.

Make your own now

With the use of task scheduler and various python scripts (or even audio files) one can create an array of verbal messages that can inform the user about what is happening with the machine at the current moment. Just like the good old Avast! notification about a virus threat or an update to its database.

I was playing around with some Python scripts and whipped up a quick snippet of code which uses the WMI library (WMI) and the speech library (PyPi) to read out the remaining battery percentage. Here’s the code, so dig in and enjoy:

import wmi, speech

c = wmi.WMI ()
for battery in c.Win32_Battery ():
batt = battery.EstimatedChargeRemaining
batt = str(batt)
speech.say (batt + ” percent of battery power remaining”)


About The Author

Jakub Niemiec

A first year computer science student. Blogs at Niemtec.com
Follow me on Twitter