switching speech modules

Chuck Hallenbeck chuckh at sent.com
Sun May 2 19:11:33 EDT 2004


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

Jacob and all,

Here is a script which works reliably for me in switching from
the sftsyn to the ltlk speakup modules. The key is to kill
speechd_up prior to removing the unneeded module. Doing it
afterward causes a kernel paging error. The final statement
restores my favorite defaults for the hardware synth:

- ----------
#!/bin/bash
echo none > /proc/speakup/synth_name
kill -9 `cat /var/run/speechd-up.pid`
rmmod speakup_sftsyn
sleep 1
modprobe speakup_ltlk
cp /etc/speakup/ltlk/* /proc/speakup

- ----------

This must be executed as root of course. The opposite script,
switching from the ltlk to the sftsyn driver, is a little
simpler:

- ----------
#!/bin/bash
echo none > /proc/speakup/synth_name
rmmod speakup_ltlk
sleep 1
modprobe speakup_sftsyn
speechd_up
cp /etc/speakup/softsynth/* /proc/speakup

- ----------

I called the first script "s2h" and the other one "h2s" but any
name will do. The second script assumes that speech-dispatcher
was run during syhstem startup and thus need not be run again.
Any observations or suggestions on the above are appreciated.

Chuck


- -- 
The Moon is Waxing Gibbous (95% of Full)
My home page is now at http://www.mhcable.com/~chuckh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQCVAwUBQJWALTVdG8M9x9tGAQLU+AQA3gXUH4d5BTJYhTOTrdPy2CRjl9g+mpWw
kyWOPu3rQJ22L3/iYMPFVU9LKFK3KVPbuBaDgG7yb82gKb8yQ4i64sJeOdZfxFPW
uaqRkPljnaqBOn+H3pC9gk0P6xBr5aegZFDTqu3Q9plukQcpupL/1sA2w2iomwh/
fY5iduQ7U6I=
=r0cM
-----END PGP SIGNATURE-----





More information about the Speakup mailing list