Debian equivalent

Charles Hallenbeck chuckh at hhs48.com
Tue Mar 21 08:36:23 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

One more thing about using a script such as mystartups (or rc.local) to 
start your software speech.

Chances are that speech-dispatcher will already be running when this 
script executes, since it has its own startup script in /etc/init.d with 
a lower priority. But what I did in my script was to "renice -5" the 
already running copy.  It turns out that Debian has a very handy  
utility called "pidof" that returns the pid of a running program, so my 
command to change the priority of speech-dispatcher looks like this:

renice -5 `pidof speech-dispatcher`

and you are in business. Whatever script you use to manage your speakup 
speech output should be sure to run speechd-up with "nice 5" so that 
speech-dispatcher will always run with a slightly higher priority than a 
normal application, and speechd-up will always run with a slightly lower 
priority. Negative numbers here mean higher priority, positive numbers 
mean lower priority. I guess that is why they call it "nice-ness" The 
nicer it is, the lower the priority. The nastier it is, the higher the 
priority.

There is a speakwith script on my web site that you might like to take a 
look at. It assumes speech-dispatcher has already been run, but does 
everything else for you.

Chuck

- -- 
The Moon is Waning Gibbous (63% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEIAFXXnuiIOyDVQURAkQSAJ9+i9QVpvZumEl74CmsZmnky0VQzwCgtnjX
pNXKT+x5JbZJDY5LVIJHEF4=
=5LZ3
-----END PGP SIGNATURE-----




More information about the Speakup mailing list