Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
3
votes
1
answers
3363
views
Speech Dispatcher failing to start on Arch Linux
I use `pulseaudio` on my system. I have installed the tts applications `espeak` and `flite`. Both of which work perfectly when called from the commandline, but fail to work when called via `spd-say`. I need them to work via `spd-say`, because I want to configure a TTS engine for Okular. Here is the...
I use
pulseaudio
on my system. I have installed the tts applications espeak
and flite
. Both of which work perfectly when called from the commandline, but fail to work when called via spd-say
. I need them to work via spd-say
, because I want to configure a TTS engine for Okular.
Here is the output for sudo systemctl status speech-dispatcherd.service
● speech-dispatcherd.service - Speech-Dispatcher an high-level device independent layer for speech synthesis.
Loaded: loaded (/usr/lib/systemd/system/speech-dispatcherd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-01-18 00:30:18 IST; 2min 9s ago
Process: 1067 ExecStart=/usr/bin/speech-dispatcher -d (code=exited, status=1/FAILURE)
Jan 18 00:30:18 archlinux-hostname systemd: Starting Speech-Dispatcher an high-level device independent layer for speech synthesis....
Jan 18 00:30:18 archlinux-hostname speech-dispatcher: [Fri Jan 18 00:30:18 2019 : 363344] speechd: Speech Dispatcher 0.8.8 starting
Jan 18 00:30:18 archlinux-hostname systemd: speech-dispatcherd.service: Control process exited, code=exited, status=1/FAILURE
Jan 18 00:30:18 archlinux-hostname systemd: speech-dispatcherd.service: Failed with result 'exit-code'.
Jan 18 00:30:18 archlinux-hostname systemd: Failed to start Speech-Dispatcher an high-level device independent layer for speech synthesis..
Here is the output for journalctl -xe
➜ journalctl -xe
Jan 18 00:30:18 archlinux-hostname sudo: codingcoffee : TTY=pts/1 ; PWD=/home/codingcoffee ; USER=root ; COMMAND=/usr/bin/systemctl restart speech-dispatcherd.service
Jan 18 00:30:18 archlinux-hostname sudo: pam_unix(sudo:session): session opened for user root by codingcoffee(uid=0)
Jan 18 00:30:18 archlinux-hostname systemd: Starting Speech-Dispatcher an high-level device independent layer for speech synthesis....
-- Subject: A start job for unit speech-dispatcherd.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit speech-dispatcherd.service has begun execution.
--
-- The job identifier is 4254.
Jan 18 00:30:18 archlinux-hostname speech-dispatcher: [Fri Jan 18 00:30:18 2019 : 363344] speechd: Speech Dispatcher 0.8.8 starting
Jan 18 00:30:18 archlinux-hostname systemd: speech-dispatcherd.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit speech-dispatcherd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jan 18 00:30:18 archlinux-hostname systemd: speech-dispatcherd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit speech-dispatcherd.service has entered the 'failed' state with result 'exit-code'.
Jan 18 00:30:18 archlinux-hostname systemd: Failed to start Speech-Dispatcher an high-level device independent layer for speech synthesis..
-- Subject: A start job for unit speech-dispatcherd.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit speech-dispatcherd.service has finished with a failure.
--
-- The job identifier is 4254 and the job result is failed.
Jan 18 00:30:18 archlinux-hostname audit: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=speech-dispatcherd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=fail>
Jan 18 00:30:18 archlinux-hostname kernel: audit: type=1130 audit(1547751618.383:189): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=speech-dispatcherd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=>
Jan 18 00:30:18 archlinux-hostname sudo: pam_unix(sudo:session): session closed for user root
Jan 18 00:30:19 archlinux-hostname sudo: codingcoffee : TTY=pts/1 ; PWD=/home/codingcoffee ; USER=root ; COMMAND=/usr/bin/systemctl status speech-dispatcherd.service
Jan 18 00:30:19 archlinux-hostname sudo: pam_unix(sudo:session): session opened for user root by codingcoffee(uid=0)
Jan 18 00:30:19 archlinux-hostname sudo: pam_unix(sudo:session): session closed for user root
Here is the output to my speech-dispatcher config file ~/.config/speech-dispatcher/speechd.conf
LogLevel 3
LogDir "default"
DefaultRate 0
DefaultPitch 0
DefaultVolume 100
DefaultLanguage en
AudioOutputMethod pulse
DefaultModule espeak
Include "clients/*.conf"
codingCoffee
(133 rep)
Jan 17, 2019, 08:32 PM
• Last activity: Aug 2, 2025, 11:08 AM
1
votes
1
answers
123
views
How to get sudo insults only through festival?
I just found out sudo insults, and I would think it would be fun to get those slanders out through [festival][1], but only the insults - how to do that on [Linux][2]? [1]: https://wiki.archlinux.org/index.php/Festival [2]: https://manjaro.org/
Jeeves
(21 rep)
Jun 28, 2020, 10:00 AM
• Last activity: Jun 26, 2025, 08:23 PM
0
votes
1
answers
108
views
Can't connect SPD-SAY and Festival
I'm using Puppy Linux: ``` Linux PuppyPC 4.9.163-lxpup-32-pae #1 SMP Thu Mar 14 15:41:19 GMT 2019 i686 i686 i686 GNU/Linux ``` I'm trying to use `spd-say` tool with `festival`. The problem is I can use `festival` by itself using this command: ``` echo "Hello world" | festival --tts ``` but not the `...
I'm using Puppy Linux:
Linux PuppyPC 4.9.163-lxpup-32-pae #1 SMP Thu Mar 14 15:41:19 GMT 2019 i686 i686 i686 GNU/Linux
I'm trying to use spd-say
tool with festival
. The problem is I can use festival
by itself using this command:
echo "Hello world" | festival --tts
but not the spd-say
spd-say "Hello world"
Whatever I do I get the same error:
Failed to connect to Speech Dispatcher:
Error: Can't connect to unix socket /root/.cache/speech-dispatcher/speechd.sock: No such file or directory. Autospawn: Autospawn failed. Speech Dispatcher refused to start with error code, stating this as a reason:
I don't have this file /root/.cache/speech-dispatcher/speechd.sock
I can run festival
server:
# festival --server
server Sun Jul 21 15:18:09 2024 : Festival server started on port 1314
and when I try to use sdp-say
I got this messages on server:
client(1) Sun Jul 21 15:19:32 2024 : accepted from localhost
client(1) Sun Jul 21 15:19:33 2024 : disconnected
As you can see it disconnects immediately. A while before there also was an error SIOD: unknown voice cmu_us_aew_cg
but after reading [this question](https://unix.stackexchange.com/questions/573279/speech-dispatcher-voice-configuration-problems-with-festival) I solved the issue
**Additional info:**
I installed these packages:

/etc/speech-dispatcher/speechd.conf
:
LogLevel 5
LogDir "/var/log/speech-dispatcher/"
DefaultVolume 100
AddModule "festival" "sd_festival" "festival.conf"
DefaultModule festival
Include "clients/*.conf"
/usr/share/speech-dispatcher/conf/speechd.conf
:
LogLevel 3
LogDir "stdout"
DefaultVolume 100
AddModule "festival" "sd_festival" "festival.conf"
DefaultModule festival
Include "clients/*.conf"
/usr/share/festival/voices/us/cmu_us_aew_cg/festvox/cmu_us_aew_cg.scm
(at the end):
(proclaim_voice
'cmu_us_aew_cg
'((language english)
(gender male)
(dialect american)
(description
"This voice provides an American English male voice using a
residual excited LPC diphone synthesis method. It uses
the CMU Lexicon pronunciations. Prosodic phrasing is provided
by a statistically trained model using part of speech and local
distribution of breaks. Intonation is provided by a CART tree
predicting ToBI accents and an F0 contour generated from a model
trained from natural speech. The duration model is also trained
from data using a CART tree.")))
(provide 'cmu_us_aew_cg)
/etc/festival.scm
(at the end):
(set! voice_default 'voice_cmu_us_aew_cg)
**Logs:**
/var/log/speech-dispatcher/speech-dispatcher.log
:
[Sun Jul 21 15:48:38 2024 : 56876] speechd: Speech Dispatcher Logging to file /var/log/speech-dispatcher//speech-dispatcher.log
[Sun Jul 21 15:48:38 2024 : 57338] speechd: Module name=festival being inserted into requested_modules list
[Sun Jul 21 15:48:38 2024 : 83160] speechd: Reading configuration for pattern emacs:*
[Sun Jul 21 15:48:38 2024 : 83377] speechd: Configuration has been read from "/etc/speech-dispatcher/speechd.conf"
[Sun Jul 21 15:48:38 2024 : 121762] speechd: Module name=espeak being inserted into detected_modules list
[Sun Jul 21 15:48:38 2024 : 121864] speechd: Module name=pico being inserted into detected_modules list
[Sun Jul 21 15:48:38 2024 : 121928] speechd: Module name=dummy being inserted into detected_modules list
[Sun Jul 21 15:48:38 2024 : 121991] speechd: Module name=festival being inserted into detected_modules list
[Sun Jul 21 15:48:38 2024 : 122053] speechd: Module name=cicero being inserted into detected_modules list
[Sun Jul 21 15:48:38 2024 : 122116] speechd: Module name=generic being inserted into detected_modules list
[Sun Jul 21 15:48:38 2024 : 122179] speechd: Module name=flite being inserted into detected_modules list
[Sun Jul 21 15:48:38 2024 : 122242] speechd: Module name=espeak-ng being inserted into detected_modules list
[Sun Jul 21 15:48:38 2024 : 122302] speechd: Module name=espeak being inserted into requested_modules list
[Sun Jul 21 15:48:38 2024 : 122346] speechd: Module name=pico being inserted into requested_modules list
[Sun Jul 21 15:48:38 2024 : 122388] speechd: Module name=dummy being inserted into requested_modules list
[Sun Jul 21 15:48:38 2024 : 122429] speechd: Load request for module festival with command sd_festival and configuration file festival.conf was previously received; ignoring the second one.
[Sun Jul 21 15:48:38 2024 : 122539] speechd: Module name=cicero being inserted into requested_modules list
[Sun Jul 21 15:48:38 2024 : 122591] speechd: Module name=generic being inserted into requested_modules list
[Sun Jul 21 15:48:38 2024 : 122634] speechd: Module name=flite being inserted into requested_modules list
[Sun Jul 21 15:48:38 2024 : 122676] speechd: Module name=espeak-ng being inserted into requested_modules list
[Sun Jul 21 15:48:38 2024 : 122882] speechd: Initializing output module festival with binary /usr/lib/speech-dispatcher-modules/sd_festival and configuration /etc/speech-dispatcher/modules/festival.conf
[Sun Jul 21 15:48:38 2024 : 122941] speechd: Output module is logging to file /var/log/speech-dispatcher//festival.log
[Sun Jul 21 15:48:38 2024 : 123823] speechd: Module festival loaded.
[Sun Jul 21 15:48:38 2024 : 123948] speechd: Trying to initialize festival.
[Sun Jul 21 15:48:38 2024 : 124017] speechd: Command sent to output module: |INIT
| (0)
[Sun Jul 21 15:48:38 2024 : 492539] speechd: Reply from output module: 480 399-Communicating with Festival through a socket. Can't connect to Festival server. Check your configuration in etc/speechd-modules/festival.conf for the specified host and port and check if Festival is really running there, e.g. with telnet. Please see documentation for more info.
[Sun Jul 21 15:48:38 2024 : 492678] speechd: Reply from output module: 480 399 ERR CANT INIT MODULE
[Sun Jul 21 15:48:38 2024 : 492746] speechd: ERROR: Module festival failed to initialize. Reason:
---------------
Communicating with Festival through a socket. Can't connect to Festival server. Check your configuration in etc/speechd-modules/festival.conf for the specified host and port and check if Festival is really running there, e.g. with telnet. Please see documentation for more info.
---------------
[Sun Jul 21 15:48:38 2024 : 493050] speechd: Initializing output module espeak with binary /usr/lib/speech-dispatcher-modules/sd_espeak and configuration /etc/speech-dispatcher/modules/espeak.conf
[Sun Jul 21 15:48:38 2024 : 493121] speechd: Output module is logging to file /var/log/speech-dispatcher//espeak.log
[Sun Jul 21 15:48:38 2024 : 493857] speechd: Module espeak loaded.
[Sun Jul 21 15:48:38 2024 : 494205] speechd: Trying to initialize espeak.
[Sun Jul 21 15:48:38 2024 : 494324] speechd: Command sent to output module: |INIT
| (0)
[Sun Jul 21 15:48:39 2024 : 396219] speechd: Reply from output module: 120 299-Espeak: Initialized successfully.
[Sun Jul 21 15:48:39 2024 : 396329] speechd: Reply from output module: 120 299 OK LOADED SUCCESSFULLY
[Sun Jul 21 15:48:39 2024 : 396406] speechd: Module espeak started successfully with message:
---------------
Espeak: Initialized successfully.
---------------
[Sun Jul 21 15:48:39 2024 : 396519] speechd: Module set parameters.
[Sun Jul 21 15:48:39 2024 : 396624] speechd: Command sent to output module: |AUDIO
| (1)
[Sun Jul 21 15:48:39 2024 : 396722] speechd: Got 32 bytes from output module over socket
[Sun Jul 21 15:48:39 2024 : 396767] speechd: Reply from output module: |207 OK RECEIVING AUDIO SETTINGS
|
[Sun Jul 21 15:48:39 2024 : 396827] speechd: Command sent to output module: |audio_output_method=pulse
audio_oss_device=/dev/dsp
audio_alsa_device=default
audio_nas_server=tcp/localhost:5450
audio_pulse_server=default
audio_pulse_min_length=100
| (0)
[Sun Jul 21 15:48:39 2024 : 396891] speechd: Command sent to output module: |.
| (1)
[Sun Jul 21 15:48:39 2024 : 514202] speechd: Got 70 bytes from output module over socket
[Sun Jul 21 15:48:39 2024 : 514318] speechd: Got 18 bytes from output module over socket
[Sun Jul 21 15:48:39 2024 : 514363] speechd: Reply from output module: |300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
|
[Sun Jul 21 15:48:39 2024 : 514404] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
.
[Sun Jul 21 15:48:39 2024 : 514483] speechd: ERROR: Can't initialize audio in output module, see reason above.
[Sun Jul 21 15:48:39 2024 : 514808] speechd: Initializing output module pico with binary /usr/lib/speech-dispatcher-modules/sd_pico and configuration /etc/speech-dispatcher/modules/pico.conf
[Sun Jul 21 15:48:39 2024 : 514873] speechd: Output module is logging to file /var/log/speech-dispatcher//pico.log
[Sun Jul 21 15:48:39 2024 : 515672] speechd: Module pico loaded.
[Sun Jul 21 15:48:39 2024 : 515846] speechd: Trying to initialize pico.
[Sun Jul 21 15:48:39 2024 : 515927] speechd: Command sent to output module: |INIT
| (0)
[Sun Jul 21 15:48:40 2024 : 139013] speechd: Reply from output module: 120 299-pico: Initialized successfully.
[Sun Jul 21 15:48:40 2024 : 139141] speechd: Reply from output module: 120 299 OK LOADED SUCCESSFULLY
[Sun Jul 21 15:48:40 2024 : 139223] speechd: Module pico started successfully with message:
---------------
pico: Initialized successfully.
---------------
[Sun Jul 21 15:48:40 2024 : 139280] speechd: Module set parameters.
[Sun Jul 21 15:48:40 2024 : 139373] speechd: Command sent to output module: |AUDIO
| (1)
[Sun Jul 21 15:48:40 2024 : 139644] speechd: Got 32 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 139742] speechd: Reply from output module: |207 OK RECEIVING AUDIO SETTINGS
|
[Sun Jul 21 15:48:40 2024 : 140050] speechd: Command sent to output module: |audio_output_method=pulse
audio_oss_device=/dev/dsp
audio_alsa_device=default
audio_nas_server=tcp/localhost:5450
audio_pulse_server=default
audio_pulse_min_length=100
| (0)
[Sun Jul 21 15:48:40 2024 : 140153] speechd: Command sent to output module: |.
| (1)
[Sun Jul 21 15:48:40 2024 : 151542] speechd: Got 70 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 151744] speechd: Got 18 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 151803] speechd: Reply from output module: |300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
|
[Sun Jul 21 15:48:40 2024 : 151847] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
.
[Sun Jul 21 15:48:40 2024 : 151920] speechd: ERROR: Can't initialize audio in output module, see reason above.
[Sun Jul 21 15:48:40 2024 : 152641] speechd: Initializing output module dummy with binary /usr/lib/speech-dispatcher-modules/sd_dummy and configuration /etc/speech-dispatcher/modules/dummy.conf
[Sun Jul 21 15:48:40 2024 : 152736] speechd: Output module is logging to file /var/log/speech-dispatcher//dummy.log
[Sun Jul 21 15:48:40 2024 : 153516] speechd: Module dummy loaded.
[Sun Jul 21 15:48:40 2024 : 153674] speechd: Trying to initialize dummy.
[Sun Jul 21 15:48:40 2024 : 153795] speechd: Command sent to output module: |INIT
| (0)
[Sun Jul 21 15:48:40 2024 : 197641] speechd: Reply from output module: 120 299-Everything ok so far.
[Sun Jul 21 15:48:40 2024 : 197740] speechd: Reply from output module: 120 299 OK LOADED SUCCESSFULLY
[Sun Jul 21 15:48:40 2024 : 197796] speechd: Module dummy started successfully with message:
---------------
Everything ok so far.
---------------
[Sun Jul 21 15:48:40 2024 : 197841] speechd: Module set parameters.
[Sun Jul 21 15:48:40 2024 : 197925] speechd: Command sent to output module: |AUDIO
| (1)
[Sun Jul 21 15:48:40 2024 : 198023] speechd: Got 32 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 198067] speechd: Reply from output module: |207 OK RECEIVING AUDIO SETTINGS
|
[Sun Jul 21 15:48:40 2024 : 198128] speechd: Command sent to output module: |audio_output_method=pulse
audio_oss_device=/dev/dsp
audio_alsa_device=default
audio_nas_server=tcp/localhost:5450
audio_pulse_server=default
audio_pulse_min_length=100
| (0)
[Sun Jul 21 15:48:40 2024 : 198194] speechd: Command sent to output module: |.
| (1)
[Sun Jul 21 15:48:40 2024 : 208561] speechd: Got 70 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 208683] speechd: Got 18 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 208729] speechd: Reply from output module: |300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
|
[Sun Jul 21 15:48:40 2024 : 208771] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
.
[Sun Jul 21 15:48:40 2024 : 208816] speechd: ERROR: Can't initialize audio in output module, see reason above.
[Sun Jul 21 15:48:40 2024 : 209108] speechd: Initializing output module cicero with binary /usr/lib/speech-dispatcher-modules/sd_cicero and configuration /etc/speech-dispatcher/modules/cicero.conf
[Sun Jul 21 15:48:40 2024 : 209171] speechd: Output module is logging to file /var/log/speech-dispatcher//cicero.log
[Sun Jul 21 15:48:40 2024 : 209845] speechd: Module cicero loaded.
[Sun Jul 21 15:48:40 2024 : 209977] speechd: Trying to initialize cicero.
[Sun Jul 21 15:48:40 2024 : 210075] speechd: Command sent to output module: |INIT
| (0)
[Sun Jul 21 15:48:40 2024 : 270484] speechd: Reply from output module: 120 299-Cicero initialized successfully.
[Sun Jul 21 15:48:40 2024 : 270785] speechd: Reply from output module: 120 299 OK LOADED SUCCESSFULLY
[Sun Jul 21 15:48:40 2024 : 270902] speechd: Module cicero started successfully with message:
---------------
Cicero initialized successfully.
---------------
[Sun Jul 21 15:48:40 2024 : 270963] speechd: Module set parameters.
[Sun Jul 21 15:48:40 2024 : 271056] speechd: Command sent to output module: |AUDIO
| (1)
[Sun Jul 21 15:48:40 2024 : 271280] speechd: Got 32 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 271340] speechd: Reply from output module: |207 OK RECEIVING AUDIO SETTINGS
|
[Sun Jul 21 15:48:40 2024 : 271400] speechd: Command sent to output module: |audio_output_method=pulse
audio_oss_device=/dev/dsp
audio_alsa_device=default
audio_nas_server=tcp/localhost:5450
audio_pulse_server=default
audio_pulse_min_length=100
| (0)
[Sun Jul 21 15:48:40 2024 : 271498] speechd: Command sent to output module: |.
| (1)
[Sun Jul 21 15:48:40 2024 : 287512] speechd: Got 70 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 287714] speechd: Got 18 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 287777] speechd: Reply from output module: |300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
|
[Sun Jul 21 15:48:40 2024 : 287831] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
.
[Sun Jul 21 15:48:40 2024 : 287891] speechd: ERROR: Can't initialize audio in output module, see reason above.
[Sun Jul 21 15:48:40 2024 : 288290] speechd: Initializing output module generic with binary /usr/lib/speech-dispatcher-modules/sd_generic and configuration /etc/speech-dispatcher/modules/generic.conf
[Sun Jul 21 15:48:40 2024 : 288398] speechd: Output module is logging to file /var/log/speech-dispatcher//generic.log
[Sun Jul 21 15:48:40 2024 : 290207] speechd: Module generic loaded.
[Sun Jul 21 15:48:40 2024 : 290354] speechd: Trying to initialize generic.
[Sun Jul 21 15:48:40 2024 : 290514] speechd: Command sent to output module: |INIT
| (0)
[Sun Jul 21 15:48:40 2024 : 319844] speechd: Reply from output module: 120 299-Everything ok so far.
[Sun Jul 21 15:48:40 2024 : 319937] speechd: Reply from output module: 120 299 OK LOADED SUCCESSFULLY
[Sun Jul 21 15:48:40 2024 : 319998] speechd: Module generic started successfully with message:
---------------
Everything ok so far.
---------------
[Sun Jul 21 15:48:40 2024 : 320044] speechd: Module set parameters.
[Sun Jul 21 15:48:40 2024 : 320114] speechd: Command sent to output module: |AUDIO
| (1)
[Sun Jul 21 15:48:40 2024 : 320263] speechd: Got 32 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 320311] speechd: Reply from output module: |207 OK RECEIVING AUDIO SETTINGS
|
[Sun Jul 21 15:48:40 2024 : 320372] speechd: Command sent to output module: |audio_output_method=pulse
audio_oss_device=/dev/dsp
audio_alsa_device=default
audio_nas_server=tcp/localhost:5450
audio_pulse_server=default
audio_pulse_min_length=100
| (0)
[Sun Jul 21 15:48:40 2024 : 320518] speechd: Command sent to output module: |.
| (1)
[Sun Jul 21 15:48:40 2024 : 329945] speechd: Got 70 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 330052] speechd: Got 18 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 330098] speechd: Reply from output module: |300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
|
[Sun Jul 21 15:48:40 2024 : 330138] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
.
[Sun Jul 21 15:48:40 2024 : 330183] speechd: ERROR: Can't initialize audio in output module, see reason above.
[Sun Jul 21 15:48:40 2024 : 330477] speechd: Initializing output module flite with binary /usr/lib/speech-dispatcher-modules/sd_flite and configuration /etc/speech-dispatcher/modules/flite.conf
[Sun Jul 21 15:48:40 2024 : 330552] speechd: Output module is logging to file /var/log/speech-dispatcher//flite.log
[Sun Jul 21 15:48:40 2024 : 331177] speechd: Module flite loaded.
[Sun Jul 21 15:48:40 2024 : 331299] speechd: Trying to initialize flite.
[Sun Jul 21 15:48:40 2024 : 331372] speechd: Command sent to output module: |INIT
| (0)
[Sun Jul 21 15:48:40 2024 : 522342] speechd: Reply from output module: 120 299-Flite initialized successfully.
[Sun Jul 21 15:48:40 2024 : 522546] speechd: Reply from output module: 120 299 OK LOADED SUCCESSFULLY
[Sun Jul 21 15:48:40 2024 : 522652] speechd: Module flite started successfully with message:
---------------
Flite initialized successfully.
---------------
[Sun Jul 21 15:48:40 2024 : 522715] speechd: Module set parameters.
[Sun Jul 21 15:48:40 2024 : 522819] speechd: Command sent to output module: |AUDIO
| (1)
[Sun Jul 21 15:48:40 2024 : 523045] speechd: Got 32 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 523175] speechd: Reply from output module: |207 OK RECEIVING AUDIO SETTINGS
|
[Sun Jul 21 15:48:40 2024 : 523251] speechd: Command sent to output module: |audio_output_method=pulse
audio_oss_device=/dev/dsp
audio_alsa_device=default
audio_nas_server=tcp/localhost:5450
audio_pulse_server=default
audio_pulse_min_length=100
| (0)
[Sun Jul 21 15:48:40 2024 : 523316] speechd: Command sent to output module: |.
| (1)
[Sun Jul 21 15:48:40 2024 : 556700] speechd: Got 70 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 556853] speechd: Got 18 bytes from output module over socket
[Sun Jul 21 15:48:40 2024 : 556911] speechd: Reply from output module: |300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
|
[Sun Jul 21 15:48:40 2024 : 556964] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
.
[Sun Jul 21 15:48:40 2024 : 557021] speechd: ERROR: Can't initialize audio in output module, see reason above.
[Sun Jul 21 15:48:40 2024 : 557328] speechd: Initializing output module espeak-ng with binary /usr/lib/speech-dispatcher-modules/sd_espeak-ng and configuration /etc/speech-dispatcher/modules/espeak-ng.conf
[Sun Jul 21 15:48:40 2024 : 557403] speechd: Output module is logging to file /var/log/speech-dispatcher//espeak-ng.log
[Sun Jul 21 15:48:40 2024 : 558358] speechd: Module espeak-ng loaded.
[Sun Jul 21 15:48:40 2024 : 558556] speechd: Trying to initialize espeak-ng.
[Sun Jul 21 15:48:40 2024 : 558698] speechd: Command sent to output module: |INIT
| (0)
[Sun Jul 21 15:48:41 2024 : 280245] speechd: Reply from output module: 120 299-Espeak-ng: Initialized successfully.
[Sun Jul 21 15:48:41 2024 : 280359] speechd: Reply from output module: 120 299 OK LOADED SUCCESSFULLY
[Sun Jul 21 15:48:41 2024 : 280510] speechd: Module espeak-ng started successfully with message:
---------------
Espeak-ng: Initialized successfully.
---------------
[Sun Jul 21 15:48:41 2024 : 280587] speechd: Module set parameters.
[Sun Jul 21 15:48:41 2024 : 280681] speechd: Command sent to output module: |AUDIO
| (1)
[Sun Jul 21 15:48:41 2024 : 280779] speechd: Got 32 bytes from output module over socket
[Sun Jul 21 15:48:41 2024 : 280823] speechd: Reply from output module: |207 OK RECEIVING AUDIO SETTINGS
|
[Sun Jul 21 15:48:41 2024 : 280883] speechd: Command sent to output module: |audio_output_method=pulse
audio_oss_device=/dev/dsp
audio_alsa_device=default
audio_nas_server=tcp/localhost:5450
audio_pulse_server=default
audio_pulse_min_length=100
| (0)
[Sun Jul 21 15:48:41 2024 : 280948] speechd: Command sent to output module: |.
| (1)
[Sun Jul 21 15:48:41 2024 : 284369] speechd: Got 70 bytes from output module over socket
[Sun Jul 21 15:48:41 2024 : 284531] speechd: Got 18 bytes from output module over socket
[Sun Jul 21 15:48:41 2024 : 284584] speechd: Reply from output module: |300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
|
[Sun Jul 21 15:48:41 2024 : 284625] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Couldn't open pulse plugin.
300 UNKNOWN ERROR
.
[Sun Jul 21 15:48:41 2024 : 284670] speechd: ERROR: Can't initialize audio in output module, see reason above.
[Sun Jul 21 15:48:41 2024 : 284808] speechd: Speech Dispatcher Logging to file /var/log/speech-dispatcher//speech-dispatcher.log
[Sun Jul 21 15:48:41 2024 : 284890] speechd: Error [speechd.c:649]:No speech output modules were loaded - aborting...
If you need more info please ask me in comments and I will provide as more information as I can
EzioMercer
(111 rep)
Jul 21, 2024, 12:42 PM
• Last activity: Jul 21, 2024, 11:28 PM
3
votes
1
answers
4971
views
What would you recommend for Voice Dictation in Linux?
Ok, so I'm looking for a simple live-dictation tool that will run natively in linux, not a web-based app. For context, I've looked around on Google, Checked out other SE posts asking the same thing in more vague ways, asked ChatGPT, Nosed around on GitHub, and so on so forth. Between them, the above...
Ok, so I'm looking for a simple live-dictation tool that will run natively in linux, not a web-based app.
For context, I've looked around on Google, Checked out other SE posts asking the same thing in more vague ways, asked ChatGPT, Nosed around on GitHub, and so on so forth.
Between them, the above have recommended a variety of tools, including vosk, sphinx, transcriber, and a number of others. None of them have been very successful for me.
I have tried using dictation in the cloud-based version of MS Word. That was successful but I'd prefer a non-cloud-based toool
The Distro I want to implement this on is Debian.
Does anyone have any suggestions of alternative tools/packages I could try?
UPDATE:
This answer has been most helpful:
https://unix.stackexchange.com/a/772356/537545
I've got SpeechNote set up and working thanks to the instructions provided by Marcus Müller, to whom I'm very grateful.
I'm going to test out the numerous English Language Models available within SpeechNote, and will add an additional update at some point regarding which one seems to be most optimal in terms of speed, accuracy and lack of interjection of automated junk ("thanks for using this software" sort of insertions)
In the meantime, if people have any additional software suggestions, please don't hesitate to add further contributions.
Thank you all :)
Lee
(135 rep)
Mar 14, 2024, 02:43 PM
• Last activity: Mar 15, 2024, 01:04 AM
0
votes
1
answers
880
views
Missing /dev/dsp
I have installed Cepstral Swift (test to speech), and when I run the command which should output audio I get the error oss_audio: failed to open audio device /dev/dsp I ensure the also OSS was installed with: dnf install alsa-utils alsa-plugins-oss but still same error. I can confirm that the device...
I have installed Cepstral Swift (test to speech), and when I run the command which should output audio I get the error
oss_audio: failed to open audio device /dev/dsp
I ensure the also OSS was installed with:
dnf install alsa-utils alsa-plugins-oss
but still same error. I can confirm that the device /dev/dsp is NOT present. I tried to install the padsp tool (to route OSS audio to PA), but that tool is not available for AlmaLinux 9
TSG
(1983 rep)
Jul 18, 2023, 10:24 PM
• Last activity: Jul 18, 2023, 11:03 PM
1
votes
1
answers
650
views
How to install coqui-ai TTS on Manjaro and use it with a simple command?
Since [coqui-ai TTS](https://github.com/coqui-ai/TTS) isn't in the AUR I have to install it manually. When I install it directly with ``` pip install TTS ``` it installs but at the end of the installation I get the error ``` ERROR: pip's dependency resolver does not currently take into account all t...
Since [coqui-ai TTS](https://github.com/coqui-ai/TTS) isn't in the AUR I have to install it manually.
When I install it directly with
pip install TTS
it installs but at the end of the installation I get the error
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
typer 0.3.2 requires click=7.1.1, but you have click 8.1.3 which is incompatible.
google-api-core 2.10.0 requires protobuf=3.20.1, but you have protobuf 3.19.6 which is incompatible.
To avoid this error I think I should install it in a virtual environment, but I want to be able to use it like
ttst text wav
using a function like
ttst() {
cat $1 | sentences | xargs -0 tts --model_name "tts_models/en/ljspeech/tacotron2-DDC" --out_path "${2:-out.wav}" --text
}
and I don't know how to do that if I install it in a virtual environment.
If there is a simpler way just forget what I said. What I want to know is the answer to the title.
sentences
refers to the [sentences-bin](https://aur.archlinux.org/packages/sentences-bin) package, required to tokenize the text in sentences, as coqui TTS only works on sentences.
user513177
Oct 23, 2022, 10:56 AM
• Last activity: Oct 30, 2022, 12:36 PM
0
votes
1
answers
373
views
Batch writing text to speech audio files from .csv file
I am new to using ZSH on Mac and am looking for help to write a simple shell script to batch create WAV audio files from a .csv file I have created a .csv file with data in 3 columns, A B C. Wanting to have text to speech read each line and write that line to a .WAV file A sample would be: Folder “T...
I am new to using ZSH on Mac and am looking for help to write a simple shell script to batch create WAV audio files from a .csv file
I have created a .csv file with data in 3 columns, A B C. Wanting to have text to speech read each line and write that line to a .WAV file
A sample would be:
Folder “TextToConvert”
.csv file “HelloSounds.csv”
A, B, C
Hello, my name is, Fred
Hello, your name is, Anne
Hello, is your name, Charles
Not sure how to select the voice or have the files named to reflect their content.
Any help is appreciated, thanks.
Zolholb
(1 rep)
Aug 17, 2022, 12:33 AM
• Last activity: Sep 26, 2022, 03:32 AM
3
votes
0
answers
378
views
I need a good, easy to use open source TTS
I'm trying to find a relatively easy to use non-robotic sounding TTS since im not really familiar with python or TTS engine's in general so it's hard for me to just yoink one of those neural network TTS thingies from github and make it work on my machine. So far i've installed coqui TTS(formerly Moz...
I'm trying to find a relatively easy to use non-robotic sounding TTS since im not really familiar with python or TTS engine's in general so it's hard for me to just yoink one of those neural network TTS thingies from github and make it work on my machine.
So far i've installed coqui TTS(formerly Mozilla TTS as i understand) and its exactly what i need, however it doesnt work properly for some reason.
When im trying to feed it a sentence that is longer than half of a dozen words it might skip some words or might just stop mid sentence and while its running it has this error:
> Decoder stopped with
max_decoder_steps
500
So its either:
a). What am i doing wrong with coqui and how do i make it read at least a paragraph of text or how do i fix this error?
or
b). Is there any other easy to use TTS programs that are similar in quality to coqui?
NickKeeger
(69 rep)
Dec 3, 2021, 03:27 AM
1
votes
1
answers
492
views
Disable "speak text" in Okular
I have personally no need for this feature and have never activated it except by error. [![enter image description here][1]][1] Sometimes I click that instead of copy and that unpleasing voice starts without any obvious way to make it stop. (I know I can add a button or shortcut, but I prefer to sav...
I have personally no need for this feature and have never activated it except by error.
Sometimes I click that instead of copy and that unpleasing voice starts without any obvious way to make it stop. (I know I can add a button or shortcut, but I prefer to save my memory as well as toolbar space for features that I need and use.)
Under *Configure Okular - Accessibility* there is an option to select the voice but there is none to disable it.
Is it possible to de-activate this feature?


cipricus
(1779 rep)
Nov 2, 2021, 09:03 AM
• Last activity: Nov 2, 2021, 11:38 AM
4
votes
3
answers
2343
views
What are some current transcription or dictation software packages for Linux?
The Mozilla [deepspeech][1] project is interesting, but perhaps not sufficiently sophisticated. My results, at least, were underwhelming. Online transcription or dictation services are fine, but an [offline][2] software package would be preferred. Is this just not that common on Linux and with open...
The Mozilla deepspeech project is interesting, but perhaps not sufficiently sophisticated. My results, at least, were underwhelming.
Online transcription or dictation services are fine, but an offline software package would be preferred.
Is this just not that common on Linux and with open source software? Looking to get transcriptions from mp3 files.
*Would prefer not to upload files or use an API which uses a similar such service.*
Nicholas Saunders
(565 rep)
May 9, 2021, 06:54 PM
• Last activity: Aug 5, 2021, 04:12 PM
1
votes
0
answers
95
views
speech recording and translate
I have a problem with converting from "wav" to "flac". Command: ``` arecord -D plughw:0,0 -f cd -t wav -d 0 -q -r 16000 | flac - -s -f --best --sample-rate 16000 -o daveconroy.flac ``` Always gives: > ERROR: raw format options (--endian, --sign, --channels, --bps, and --sample-rate) are not allowed...
I have a problem with converting from "wav" to "flac".
Command:
arecord -D plughw:0,0 -f cd -t wav -d 0 -q -r 16000 | flac - -s -f --best --sample-rate 16000 -o daveconroy.flac
Always gives:
> ERROR: raw format options (--endian, --sign, --channels, --bps, and --sample-rate) are not allowed for non-raw input
While I can record with the following command, playback is extremely noisy:
arecord -t raw -f S16_LE -r 8000 | flac - -f --endian little --sign unsigned --channels 1 --bps 16 --sample-rate 8000 -s -c -o test.flac
Project link: https://daveconroy.com/how-to/turn-raspberry-pi-translator-speech-recognition-playback-60-languages/
https://makezine.com/projects/universal-translator/
I have searched with my colleague for hours, unfortunately unsuccessfully, and have also tried with sox.
Maybe there is a Linux professional among you who can help me.
chilyourlifefist
(11 rep)
Jul 16, 2021, 03:44 PM
• Last activity: Jul 16, 2021, 03:50 PM
2
votes
0
answers
308
views
Using mbrola voices with festival from the command-line
I installed `apt install festival #Version: 1:2.5.0-5` and `apt install mbrola-de{1..7} #Version: 3.3+dfsg-4` **How can I make use of this German mbrola voices in festival?**
I installed
apt install festival #Version: 1:2.5.0-5
and apt install mbrola-de{1..7} #Version: 3.3+dfsg-4
**How can I make use of this German mbrola voices in festival?**
nath
(6094 rep)
Mar 20, 2021, 02:54 AM
2
votes
2
answers
3056
views
speech-dispatcher voice configuration problems with festival
I finally got `Festival` working with the US HTS voices: `cmu_us_awb_cg`, `cmu_us_jmk_cg`, `cmu_us_slt_cg`, `cmu_us_bdl_cg`, `cmu_us_clb_cg`, `cmu_us_rms_cg`. I manually configured `festival.scm` to use `bdl` voice: (set! voice_default 'voice_cmu_us_bdl_cg) It's now working fine both from within int...
I finally got
Festival
working with the US HTS voices: cmu_us_awb_cg
, cmu_us_jmk_cg
, cmu_us_slt_cg
, cmu_us_bdl_cg
, cmu_us_clb_cg
, cmu_us_rms_cg
.
I manually configured festival.scm
to use bdl
voice:
(set! voice_default 'voice_cmu_us_bdl_cg)
It's now working fine both from within interactive festival
and when server is running (festival --server
):
nc localhost 1314 The DefaultVoiceType controls which voice type should be used by
> default. Voice types are symbolic names which map to particular
> voices provided by the synthesizer according to the output module
> configuration. Please see the synthesizer-specific configuration
> in etc/speech-dispatcher/modules/ to see which voices are assigned to
> different symbolic names. The following symbolic names are
> currently supported: MALE1, MALE2, MALE3, FEMALE1, FEMALE2, FEMALE3,
> CHILD_MALE, CHILD_FEMALE
>
> # DefaultVoiceType "MALE1"
I also tried to increase heap size up to 50M (as per some posts in other discussions), but it doesn't help:
festival --server --heap 50000000
I get the same strange errors. Any suggestions appreciated.
Oak_3260548
(131 rep)
Mar 16, 2020, 09:46 PM
• Last activity: Mar 12, 2021, 08:49 AM
1
votes
0
answers
148
views
How to download sapi5 voices in Pop OS?
I made a **python desktop assistant in windows** which took user input and gave out output in the form of speech with the help of pyttsx3 , I used one of the male voices which comes in by default in windows sapi5. Recently I shifted to Linux( Pop OS) and I found out that sapi5 isnt supported in Linu...
I made a **python desktop assistant in windows** which took user input and gave out output in the form of speech with the help of pyttsx3 , I used one of the male voices which comes in by default in windows sapi5. Recently I shifted to Linux( Pop OS) and I found out that sapi5 isnt supported in Linux . How can i **download the windows sapi5 voices in Pop OS** .
Vedansh Tyagi
(13 rep)
Nov 8, 2020, 07:27 AM
3
votes
3
answers
1470
views
How can I read out a text file?
I want to convert text in file a.txt to sound & play it using APLAY. any suggestions please?
I want to convert text in file a.txt to sound & play it using APLAY. any suggestions please?
user453508
(31 rep)
Mar 15, 2019, 06:24 AM
• Last activity: Aug 5, 2020, 06:57 PM
2
votes
2
answers
467
views
How do I redirect output from a command line app (howie AIML interpreter) to another command line app (espeak)?
I'd like to interact with an AIML interpreter that runs on the command line (Howie) using standard input and have the output played using espeak. I've tried: > ./runme.py | espeak --stdin No success yet.
I'd like to interact with an AIML interpreter that runs on the command line (Howie) using standard input and have the output played using espeak.
I've tried:
> ./runme.py | espeak --stdin
No success yet.
Yusufk
(171 rep)
Jan 9, 2014, 03:49 PM
• Last activity: Jul 11, 2020, 09:44 AM
2
votes
2
answers
2244
views
audio play not starting at beginning
When I run a audio file with like mpg321 or aplay or sox or even in TTS's (Text to speak) audio only outputs correctly from the second time I reproduce the audio file... per example in Text to speech: If write "Hello World!" it only speaks "orld" or if I write "you are a good boy" it only speaks "a...
When I run a audio file with like mpg321 or aplay or sox or even in TTS's (Text to speak) audio only outputs correctly from the second time I reproduce the audio file...
per example in Text to speech: If write "Hello World!" it only speaks "orld" or if I write "you are a good boy" it only speaks "a good boy"... Why?
How can I fix this?
in TTS's this happens with all TTS: espeak, Google Api, VoiceRSS Api, etc... and happens in my old raspberry (Raspbian) too , not only in my Ubuntu (14.04.1 LTS)
I guess is because audio engine or something like that has a delay of 0.5 - 2 sec to start. And then skips the fisrt second or two of the audio.
And if I run the same audio twice or triple, etc , from the second time it runs well, but only if I am quickly...
I need it for Text to Speak.
Both Raspberry Pi and Ubuntu Machine are connected by HDMI.
How can I solve it?
To speak all the words? And the audios from the begin of beginnings?
DiogoSaraiva
(485 rep)
Feb 13, 2015, 12:36 PM
• Last activity: Nov 26, 2019, 09:57 PM
3
votes
2
answers
1613
views
Access highlighted text from script?
Is it possible to access highlighted text via a shell script? I want to make a keyboard shortcut to use 'espeak' to read highlighted text.
Is it possible to access highlighted text via a shell script?
I want to make a keyboard shortcut to use 'espeak' to read highlighted text.
Philip Kirkbride
(10746 rep)
Oct 25, 2016, 12:38 AM
• Last activity: Oct 19, 2019, 06:13 PM
1
votes
2
answers
1799
views
Using spd-say in a bash script function
I'm sure this is fairly elementary, but I can't figure it out. My script: #!/bin/bash sez () { echo $1 spd-say "$1" } sez "does this work" sez "this does work" What I'm trying to make happen is use spd-say in a function to make the computer talk to me. The echo portion of my function works. It outpu...
I'm sure this is fairly elementary, but I can't figure it out.
My script:
#!/bin/bash
sez ()
{
echo $1
spd-say "$1"
}
sez "does this work"
sez "this does work"
What I'm trying to make happen is use spd-say in a function to make the computer talk to me.
The echo portion of my function works. It outputs both lines of text that I feed to it in the expected order. However, the spd-say part doesn't. It only ever says the last line. I'm assuming it's because the second command is "overwriting" the output of the first because it's trying to run them in parallel to the same output. I've tried adding ;wait, &&, and various other things to the end of the sez command, on the next line after, within the function on the spd-say command, etc, but everything I'm trying isn't helping.
What am I doing wrong?
lightwing
(119 rep)
Oct 9, 2016, 03:06 PM
• Last activity: Mar 28, 2019, 12:46 AM
1
votes
1
answers
3363
views
say command not working on command line only Debian install
`uname -a` prints the output `Linux debian 4.9.0-3-686-pae #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) i686 GNU/Linux` I have only the core system utilities installed with no graphical interface. I did `sudo apt-get install gnustep-gui-runtime` to get the `say` command. when i run the command `say fo...
uname -a
prints the output Linux debian 4.9.0-3-686-pae #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) i686 GNU/Linux
I have only the core system utilities installed with no graphical interface.
I did sudo apt-get install gnustep-gui-runtime
to get the say
command.
when i run the command say foo
the cursor blinks a few times on the line below the prompt before exiting.
echo $?
returns 1
mree
(11 rep)
Jan 26, 2018, 05:53 PM
• Last activity: Nov 17, 2018, 08:18 AM
Showing page 1 of 20 total questions