[Xastir] audio alerts on os X

Steve Rogers kd5mkv at hotmail.com
Sat May 2 14:07:57 EDT 2009


I got festival connected to server, thanks...I want to demo to other hams.So far with Ubuntu 9.04, has been a good experience. steve kd5mkv thx

> Date: Sat, 2 May 2009 11:25:25 -0500
> From: kg4wsv at gmail.com
> To: xastir at lists.xastir.org
> Subject: [Xastir] audio alerts on os X
> 
> On a whim I did a bit of playinivalg with audio alerts on OS X.
> 
> I replaced the play command with /usr/bin/say (command line to OS X
> speech synthesis) and replaced the file name with a string to be
> spoken.
> 
> Almost got it, but /usr/local/share/xastir/sound/ was getting
> prepended to the "filename".
> 
> Edited xastir config file, cleared out the SOUND_DIR entry.  Bummer,
> apparently the path is hard coded as a default, because it's still
> there.  Is there some sort of placeholder I can use to keep it empty?
> 
> Hacked out a little perl script to strip
> /usr/local/share/xastir/sound/ from argv[0] and execute the say
> command, and use it for the "play" command.
> 
> It works!  I'm already sick of hearing my computer say "new station heard".
> 
> Maybe I'll see if I can fake a festival client the same way.
> 
> Perl script follows.
> 
> -Jason
> kg4wsv
> 
> 
> #!/usr/bin/perl
> $ARGV[0] =~ s!/usr/local/share/xastir/sounds/!!g;
> system("/usr/bin/say", (join " ", @ARGV));
> _______________________________________________
> Xastir mailing list
> Xastir at lists.xastir.org
> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

_________________________________________________________________
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009


More information about the Xastir mailing list