This project sets up an output module for speech-dispatcher
that logs text to a terminal (rather than speaking it aloud).
- Run
setup.sh
.setup.sh
is responsible for addingstdout-generic
as a speech dispatcher module.
- (Optional) In
~/.config/speech-dispatcher/speechd.conf
, changeDefaultModule
tostdout-generic
. - Run
bash log-speech.sh
.- This creates a FIFO at
/tmp/speech-stdout
, then repeatedly logs output from that FIFO. - Pressing ctrl-c removes the FIFO and ends the output loop.
- This creates a FIFO at
- Run
spd-conf -uc
to initialize speech-dispatcher configuration files.- On some distributions,
spd-conf -uc
fails to run (e.g. error: can't findXDG_CONFIG_HOME
). It may be sufficient to manually create a~/.config/speech-dispatcher/speechd.conf
file that imports/etc/speech-dispatcher/speechd.conf
. For example,# In ~/.config/speech-dispatcher/speechd.conf" Include "/etc/speech-dispatcher/speechd.conf"
- On some distributions,
- Copy
stdout-generic.conf
to~/.config/speech-dispatcher/modules/
- Add
stdout-generic
as an output module. At the end of~/.config/speech-dispatcher/speechd.conf
, add,# Name Type Configuration file AddModule "stdout-generic" "sd_generic" "stdout-generic.conf"
- (Optional) In
~/.config/speech-dispatcher/speechd.conf
, changeDefaultModule
tostdout-generic
.
After setup, run log-speech.sh
to:
- Create a fifo
/tmp/speech-stdout
(withmkfifo
).stdout-generic.conf
configuresspeech-dispatcher
to push output to/tmp/speech-stdout
.
- Log output from
/tmp/speech-stdout
(by repeatedly callingcat /tmp/speech-stdout/
).