No subject


Thu Oct 15 11:33:11 CEST 2009


either, but since speech dispatcher is included in Debian, I used
speechd-up - successfuly.

Let's chroot into our freshly deboostrapped system:


# grml-chroot /dev/sda1 /bin/bash
# cd ~


Ok, first install speech dispatcher and alsa utils (for setting the
volume which somehow starts muted on my machine) and a few packages
needed for compiling stuff:


# aptitude install speech-dispatcher alsa-utils
# aptitude install build-essential libspeechd-dev libglib2.0-dev


Then download and install speechd-up (I did this first because I wanted
to use the Debian modules from speakup, which did not work):

# wget \
  http://www.freebsoft.org/pub/projects/speechd-up/speechd-up-0.4.tar.gz
# tar xfz speechd-up-0.4.tar.gz
# cd speechd-up-0.4
# ./configure
# make speechd-up
# make install
# cd ..


Then download and compile stable speakup modules. Note that we have to
cheat a bit here, as the makefile tries to refer to the currently
running kernel's module directory via `uname -r`, but the currently
running kernel is 2.6.28-grml and not 2.6.26-2-686. If there is any
cleaner way to do that, please tell me - and no, I don't think
symlinking the modules directories is cleaner.

Anyway, here we go:


# wget --passive \
  ftp://linux-speakup.org/pub/speakup/speakup-3.1.3.tar.bz2
# tar xfj speakup-3.1.3.tar.bz2
# cd speakup-3.1.3/src
# echo 'ls -1 /lib/modules' >/root/uname
# chmod a+x /root/uname
# export PATH=/root:$PATH
# make
# make modules_install
# rm /root/uname
# export PATH=${PATH:6}
# cd ../..


Now I built a small init script and stored it as /etc/init.d/speakup:


#!/bin/bash
/usr/bin/amixer set PCM 80% unmute
/usr/bin/amixer set Master 80% unmute
/sbin/modprobe speakup_soft
/usr/local/bin/speechd-up


Now set permissions and symlink it to get it started late at the boot
process:


# chmod a+x /etc/init.d/speakup
# cd /etc/rc2.d
# ln -s ../init.d/speakup S90speakup


Done. After a reboot into my shiny new system, my Debian Linux spoke to
me. And I was glad I knew I just had to press CapsLock+Ctrl+Return to
"turn him off". :-)


Regards,


Michael


More information about the Grml mailing list