Discussion:
silence during boot
Chris Zenchenko
2017-06-19 16:14:26 UTC
Permalink
I'm looking for a way to keep Speakup from saying anything during the boot
cycle.
I have a machine configured the way I want and typically only ssh in.
Speakup keeps speaking during boot and resetting the alsamixer settings and
I need it to remain silent and to leave alsamixer settings alone.
I'm using the machine for IRLP.
I'd also be fine if there was a way to force and keep Speakup on a different
sound card.
Anything to keep it from changing audio levels and sending synthesized voice
out on my node.
Any help appreciated.
tnx
Craig Martin
2017-06-19 17:07:45 UTC
Permalink
Hi, Chris,

What a friend and i did, was to use a script like this one, put it in
/sbin, and call it in /etc/rc.local. The name of the script is spk, and
it's like this:

---

#!/bin/bash
killall -9 pulseaudio
sleep 2
aumix -v 100 -w 100 -W 100 -p 100
sleep 2
espeak -a 200 "shutting down previous speak up session. Please wait."
sleep 2
killall -9 espeakup
sleep 2
modprobe -r speakup_soft
sleep 2
espeak -a 200 "Starting Speak up. Please wait."
sleep 2
modprobe speakup_soft
sleep 2
# echo soft >/sys/accessibility/speakup/synth cp /etc/soft/* /speakup/soft
# /usr/local/bin/punc3
sleep 2
espeakup
sleep 2
# /usr/local/bin/bellset
espeak -a 200 "speak up has started successfully. Thank you for waiting."
# last line.
---
what you'll need to do is replace our software synthesizer with your
preferred one, and put a numbersign befor the echo statements. Good
luck,

Craig Martin, KY0O
SSdtIGxvb2tpbmcgZm9yIGEgd2F5IHRvIGtlZXAgU3BlYWt1cCBmcm9tIHNheWluZyBhbnl0aGlu
ZyBkdXJpbmcgdGhlIGJvb3QKY3ljbGUuCkkgaGF2ZSBhIG1hY2hpbmUgY29uZmlndXJlZCB0aGUg
d2F5IEkgd2FudCBhbmQgdHlwaWNhbGx5IG9ubHkgc3NoIGluLgpTcGVha3VwIGtlZXBzIHNwZWFr
aW5nIGR1cmluZyBib290IGFuZCByZXNldHRpbmcgdGhlIGFsc2FtaXhlciBzZXR0aW5ncyBhbmQK
SSBuZWVkIGl0IHRvIHJlbWFpbiBzaWxlbnQgYW5kIHRvIGxlYXZlIGFsc2FtaXhlciBzZXR0aW5n
cyBhbG9uZS4KSSdtIHVzaW5nIHRoZSBtYWNoaW5lIGZvciBJUkxQLgpJJ2QgYWxzbyBiZSBmaW5l
IGlmIHRoZXJlIHdhcyBhIHdheSB0byBmb3JjZSBhbmQga2VlcCBTcGVha3VwIG9uIGEgZGlmZmVy
ZW50CnNvdW5kIGNhcmQuCkFueXRoaW5nIHRvIGtlZXAgaXQgZnJvbSBjaGFuZ2luZyBhdWRpbyBs
ZXZlbHMgYW5kIHNlbmRpbmcgc3ludGhlc2l6ZWQgdm9pY2UKb3V0IG9uIG15IG5vZGUuCkFueSBo
ZWxwIGFwcHJlY2lhdGVkLgp0bngKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fClNwZWFrdXAgbWFpbGluZyBsaXN0ClNwZWFrdXBAbGludXgtc3BlYWt1cC5v
cmcKaHR0cDovL2xpbnV4LXNwZWFrdXAub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9zcGVh
a3VwCg==
Gregory Nowak
2017-06-20 01:47:14 UTC
Permalink
Post by Chris Zenchenko
I'm looking for a way to keep Speakup from saying anything during the boot
cycle.
You do this by passing quiet=1 to the speakup module. How you do that
depends on the distribution of gnu/linux you're using, and on if you
have speakup load in your initial ramdisk or not (assuming you have an
initrd). Typically, you want to create a file in /etc/modprobe.d. You
can call that file whatever you want, as long as it ends in .conf
(E.G. local.conf or speakup.conf). This file should contain the
following line:

options speakup quiet=1
Post by Chris Zenchenko
Speakup keeps speaking during boot and resetting the alsamixer settings and
I need it to remain silent and to leave alsamixer settings alone.
Hmmm, first time I've heard of speakup resetting alsamixer settings.
Post by Chris Zenchenko
I'd also be fine if there was a way to force and keep Speakup on a different
sound card.
That depends on what software synthesizer is being used, and on if you're using
espeakup, or speech-dispatcher, or something else. If you're using
espeakup, you need to export

ALSA_CARD=1

to use espeakup through the second sound card. On debian and
derivatives, you can set this up in /etc/default/espeakup.

Greg
--
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-***@EU.org
Loading...