FS#64757 - [espeakup] Allow setting default voice when using systemd unit file
Attached to Project:
Community Packages
Opened by Rafael Fontenelle (josephg) - Saturday, 07 December 2019, 09:57 GMT
Last edited by Alexander Epaneshnikov (alex19EP) - Saturday, 12 March 2022, 21:06 GMT
Opened by Rafael Fontenelle (josephg) - Saturday, 07 December 2019, 09:57 GMT
Last edited by Alexander Epaneshnikov (alex19EP) - Saturday, 12 March 2022, 21:06 GMT
|
Details
Description:
Arch provides a system unit file to make start/stop/enable easier, but it does not give the possibility to set a default voice (via '--default-voice=voice' or '-V voice'). This endangers a blind user that is not English fluent to not be able to use a newly installed Arch system, which could be installed using TalkingArch.info Additional info: * package version(s) espeakup 0.80 Steps to reproduce: - # systemctl start espeakup - voice is English |
This task depends upon
Closed by Alexander Epaneshnikov (alex19EP)
Saturday, 12 March 2022, 21:06 GMT
Reason for closing: Implemented
Additional comments about closing: espeakup 0.90
Saturday, 12 March 2022, 21:06 GMT
Reason for closing: Implemented
Additional comments about closing: espeakup 0.90
I would like to harden the service file, which runs as root by default.
Also, what would make more sense: A template user service file (i.e. espeakup@.service), which will be started with a language: e.g. `systemctl start espeakup@en` or a plain service (i.e. espeakup.service), which is configured via configuration file (one is already present in the package's repo, but was apparently never added during packaging for some reason), that lives in /etc/espeakup.conf?
I'm currently leaning towards the latter solution, but I'm wondering what is the easier to use solution. That being said: Both could be shipped actually...
first, i tried running espeakup without root privileges. it works if it can access /dev/softsynth file. but because i am using pulsaudio I need to log in to the user in the GUI and in the console.
second, I think that config in .etc/default/espeakup.config wood bee ideal solution. Now I just redefined systemd service file.
1) For me, just changing permissions of /dev/softsynth to 777 and running 'espeakup -V <lang>' didn't work as regular user due to lack of permissions to create /var/run/espeakup.pid; Even setting /var to 777 and running 'touch /var/run/espeakup.pid' failed. Not sure how to work around it.
2) The 'espeakup@.service' solution worked fine for me. I was wondering why that conf file existed but was not used. I guess it would be nice feature.
also pkgbuild at https://github.com/alex19EP/pkgbuilds/tree/master/espeakup
@dvzrv fill free to use it.
p.s testid on TalkingArch
https://github.com/linux-speakup/espeakup