From: "John Heim" <jheim@math.wisc.edu>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: success w/ USB headset
Date: Wed, 22 Aug 2007 14:39:04 -0500 [thread overview]
Message-ID: <019101c7e4f4$191ca7d0$4ba65c90@vv507j> (raw)
I bought a plantronics 510 USB headset a couple of weeks ago. I've been
struggling to get a machine with no sound card set up so that it starts
talking when I plug in the headset. I finally got it working.
1. Install speakup patched kernel. I am currently using one from Shane's
space on debian.org.
2. Install espeak. This actually turned out being critical. I could not get
the hotplug system stuff to work with flite or festival. Actually, that may
work with newer version of flite or festival but in debian etch, you get
flite and festival that depend on oss. But etch runs alsa by default. The
alsa-oss module didn't work with the udev subsystem. More on that below.
3. Install speech-dispatcher and speechd-up
4. Add a udev rule to load speech-dispatcher and speechd-up when you connect
your headset. This is the tricky part.
I can't really explain all there is to know about writing udev rules. A good
place to start is here:
http://reactivated.net/writing_udev_rules.html
A couple of things I discovered though:
1. The alsa-oss module is not available when udev rules are run. In other
words, there/s no /dev/dsp. So starting speech-dispatcher will fail if you
have it configured to use the oss versions of flite or festival. I think you
can recompile flite and festival for alsa. Or you can do what I did and
switch to espeak.
2. I found it difficult to get udev (aka hotplug) to not try to start speech
several times. I ended up writing a script that first checks if
/dev/softsynth exists and exits if it does. If /dev/softsynth does not
exist, it runs speech-dispatcher and speechd-up.
My udev rule:
ACTION=="add",SUBSYSTEM=="usb",SYSFS{idVendor}=="047f",SYSFS{idProduct}=="c001",RUN+="/usr/local/bin/startspeech
%k %n"
My script /usr/local/bin/startspeech:
--- Begin ---
#!/bin/sh
if [ -e /dev/softsynth ]; then
exit
fi
/etc/init.d/speech-dispatcher restart
/etc/init.d/speechd-up restart
-- End ---
John Heim
jheim@math.wisc.edu / 608-263-4189
If you are blind and you use linux, please subscribe to
blinux-list@redhat.com
reply other threads:[~ UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='019101c7e4f4$191ca7d0$4ba65c90@vv507j' \
--to=jheim@math.wisc.edu \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).