diff --git a/autostart/systemd/espeakup.conf b/autostart/systemd/espeakup.conf new file mode 100644 index 0000000..56aebc1 --- /dev/null +++ b/autostart/systemd/espeakup.conf @@ -0,0 +1 @@ +default_voice= diff --git a/autostart/systemd/espeakup.service b/autostart/systemd/espeakup.service new file mode 100644 index 0000000..85c1f55 --- /dev/null +++ b/autostart/systemd/espeakup.service @@ -0,0 +1,16 @@ +[Unit] +Description=Software speech output for Speakup +# espeakup needs to start after the audio devices appear, hopefully this should go away in the future +Wants=systemd-udev-settle.service +After=systemd-udev-settle.service sound.target + +[Service] +Type=forking +EnvironmentFile=/etc/conf.d/espeakup +PIDFile=/run/espeakup.pid +ExecStart=/usr/bin/espeakup --default-voice=${default_voice} +ExecReload=/bin/kill -HUP $MAINPID +Restart=always + +[Install] +WantedBy=sound.target