Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jbisbee (2452)

  (email not shown publicly)
AOL IM: Bisbee23 (Add Buddy, Send Message)
Yahoo! ID: jbisbee (Add User, Send Message)

Journal of jbisbee (2452)

Tuesday January 29, 2002
09:00 AM

Text-to-Speech E-mail Notification

[ #2496 ]
I took the whole idea of the text-to-speech callerid and decided that I wanted festival to announce new mail (in my inbox only and not to any of my lists).

New E-mail From: SENDERS NAME, Subject SUBJECT

This worked great, but because I listen to music while I program, I would only here a muffled version of the the message. So I decided to add another feature that would pause XMMS and then to the text-to-speech on the sender and subject, then unpause my music.

I was suprised to find that it was very simple to do this

use Xmms::Remote;
my $xmms = Xmms::Remote->new();

$xmms->pause; # to pause
# do festival text-to-speech stuff here
$xmms->pause; # to unpause

I'm going to clean up my code and release this to the general public once I work out the kinds. So now instead of seeing a little blinking light every time I get new mail, my computer reads it to me :)


The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.