[Unit]
Description=Software speech output for Speakup
Documentation=man:espeakup(8)
Wants=systemd-udev-settle.service
After=systemd-udev-settle.service sound.target

[Service]
Type=forking
PIDFile=/run/espeakup.pid
Environment="default_voice= ALSA_CARD="
EnvironmentFile=-/etc/default/espeakup
ExecStartPre=+modprobe speakup_soft
ExecStart=/usr/bin/espeakup --default-voice=${default_voice}
ExecReload=kill -HUP $MAINPID
Restart=always
Nice=-10
OOMScoreAdjust=-900

[Install]
WantedBy=sound.target
