0%

timer

Today my friend come to lunch, lunch is prepared in the oven and I don’t want to move to take the timer.
Here is a way to set a timer on OSX.

‘’’
setalarm() {
sleep $(echo “$1 * 60” | bc)
say “Lunch Time”
}
setalarm 1
‘’’

What’s interesting

  • “say” command
  • say -v “voice name” “text to say”
  • voice name includes: Femal, Male and Novelty Voice, like “Cellos”, “Bad News”, “Pipe Organ”
  • output the recording: say -v “Cellos” “Lalalalalalalalala” -o save.aiff