writing a script for slowing down Speakup

Geoff Shang gshang at pacific.net.au
Sat Dec 27 21:01:38 EST 2003


Hi:

There are several ways to do this, but the Debian way is to have a script
in /etc/init.d which is then called from the appropriate run-level
directory.

Here's what I did.

Create a script /etc/init.d/speakup.sh with the required commands.  Here's
what mine looks like:

#!/bin/sh
#Initialise speakup to desired default values

#Turn off keyboard echo
echo 0 >/proc/speakup/key_echo

#Set synthesiser defaults
echo e >/proc/speakup/rate
echo 3 >/proc/speakup/pitch
echo 5 >/proc/speakup/tone

#Define the "some" punctuation mode
echo "/*<>=+$%&@" >/proc/speakup/punc_some


Once you've made this file and made it executable (chmod a+x
/etc/init.d/speakup.sh), you'll need to make a link to it from one of the
rc*.d directories.  I have it linked from rcS.d so that it executes
regardless of whether or not the machine is started in single-user mode.


I have my link as soon after the checkroot script as possible, so that
speakup will make its changes as soon as it can.  Here's the link command I
used:

ln -s /etc/init.d/speakup.sh /etc/rcS.d/S11speakup.sh

Note that  case matters in the above command.

Hope this helps.

Geoff.






More information about the Speakup mailing list