Osx-like Speech Function?


CandidStan

Member
Joined
May 13, 2008
Messages
410
I'm wondering if anyone could (or if it's already included in Angstrom) code a small program to audibly announce the time as you choose? (i.e. every half an hour/every hour)
 
CandidStan said:
I'm wondering if anyone could (or if it's already included in Angstrom) code a small program to audibly announce the time as you choose? (i.e. every half an hour/every hour)
You could use cron and festival to do just that. Easy Peasy.
 
Last edited by a moderator:
I'll even write out the code for you (at least most of it)...

CODE
#!/bin/bash
flite "The time is `date +%H%M`"


I think flite needs an option to take input from stdin, but I don't know what it is off the top of my head. You might also want to change the format of the time (that'll say "The time is 2310" at 11:10 PM, for instance).

HTH
 
Back
Top