Skip to content

Instantly share code, notes, and snippets.

@BjornW
Created November 1, 2012 13:01
Show Gist options
  • Save BjornW/3993501 to your computer and use it in GitHub Desktop.
Save BjornW/3993501 to your computer and use it in GitHub Desktop.
Speaking time
#!/bin/bash
# depends on speech dispatcher http://packages.ubuntu.com/precise/speech-dispatcher
# use crontab to run this script automatically every X times when you want to know the time
current=`date --date="now" +%H:%M`;
spd-say --pitch -90 --rate -30 --voice-type male1 "The current time is: $current"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment