Gentoo Archives: gentoo-accessibility

From: Whitley CTR Cecil H <WhitleyCH.ctr@××××××××××××××××.mil>
To: "'gentoo-accessibility@l.g.o'" <gentoo-accessibility@l.g.o>
Subject: [gentoo-accessibility] YAVP
Date: Fri, 17 Sep 2004 12:44:07
Message-Id: 6D3A09C6CAB0D311BA5000902760D022040F21AB@chpt0000se01.cherrypoint.usmc.mil
1 Hi,
2 Anyone who hangs out at any of the rec.games.roguelike should recognize the
3 subject line. I've gotten 2004.2 up and running with
4 flite/speech-dispatcher/speechd-up and of course speakup! Now just before
5 networking comes up my computer starts talking with software speech. I will
6 post my experience here so that others may follow with less pain. I do not
7 cover installing alsa, but I do mention it and include a couple critical
8 reminders.
9
10 emerge flite (or the software synth of your choice, ymmv)
11 emerge speech-dispatcher
12 mkdir /etc/portage (if it doesn't exist)
13 echo "app-accessibility/speechd-up ~x86" > /etc/portage/package.keywords
14 (that unmasks speechd-up, optionally package.unmask may work now if the
15 keyword has been removed)
16 *important* make sure your kernel was compiled with softsynth available to
17 speakup as a loadable module)
18 mknod /dev/softsynth c 10 26
19 (defaults for speakup as it is currently)
20
21 Now, a brief explaination before I go into the next steps. flite and
22 speech-dispatcher need to be started, speakup needs to be set to use the
23 sftsyn synthesizer and finally speechd_up needs to be started. To make it
24 simple to start flite, I "borrowed" the speech-dispatcher script in
25 /etc/init.d. Edit it and basically replace speech-dispatcher (and various
26 flavors thereof) with flite (or possibly the synth of your choice). I named
27 this modified script fli. The name is important because scripts in init.d
28 are started in alphabetical order, with an exception. I can post my fli
29 script here, if anyone is interested. Now, back to procedures. I should
30 also include a note on alsa here. In short, you will need to have alsa (or
31 oss?) configured. Use amixer to set your channels volume and to unmute
32 **important** them. Then save your mixer settings using /usr/sbin/alsactl
33 save.
34
35 rc-update add alsasound boot
36 (Loads back mixer settings, etc, starts sound, sorta)
37 rc-update add speech-dispatcher boot
38 (runs speech dispatcher during boot phase)
39 rc-update add fli boot
40 (ditto for fli, see above note)
41 rc-update add speechd-up default
42 (puts speechd-up in the "default" scripts)
43
44
45 As a last step you need to create an entry in your boot loader configuration
46 to pass speakup_synth=sftsyn so that speakup will use the software
47 synthesizer. Good luck!
48
49 Regards,
50
51 Cecil Whitley
52
53 P.s. John, is there any problem with the fli script above? It works for me
54 but admittedly hasn't been stressed tested (fli stop, fli restart haven't
55 been tried). I don't have the actual script here, but I can mail it to you
56 from home later.