Presently when Speech Synthesis Markup Language (SSML) is set as at
text property of
SpeechSynthesisUtterance instance at Chromium or Firefox web browsers the SSML is not parsed at *nix as reflected at audio output of
When Chromium is launched with
speech-dispatcher is started automatically
DESCRIPTION speech-dispatcher is a server process that is responsible for trans‐ forming requests for text-to-speech output into actual speech hearable in the speakers. It arbitrates concurrent speech requests based on mes‐ sage priorities, and abstracts different speech synthesizers. Client programs, like screen readers or navigation software, send speech requests to speech-dispatcher using TCP protocol (with the help of client libraries). speech-dispatcher is usually started automatically by client libraries (i.e. autospawn), so you only need to run it manu‐ ally if testing/debugging, or when in other explicit need for a special setup.
as reflected at Task Manager
speech-dispatcher --spawn-communication-method unix_socket --socket-path /run/user/1000/speech-dispatcher/speechd.sock
creates a user configuration file for
espeak is set as the default module
espeak has an
-m Interpret SSML markup, and ignore other < > tags
Am not entirely sure if
spd-say is not called when
window.speechSynthesis.speak() is called;
spd-say has an
x option which achieves same result as above
-x, --ssml Set SSML mode on (default: off)
speech-dispatcher documentation states that the user configuration file can be used to set parameters for specific clients
4.1.6 Parameter Settings Commands
The following parameter setting commands are available. For configuration and history clients there are also functions for setting the value for some other connection and for all connections. They are listed separately below.
C API function:
int spd_set_data_mode(SPDConnection *connection, SPDDataMode mode)Set Speech Dispatcher data mode. Currently, plain text and SSML are supported. SSML is especially useful if you want to use index marks or include changes of voice parameters in the text.
mode is the requested data mode:
Parse the SSML set at
text property of
SpeechSynthesisUtterance using the existing capabilities of the native program called to convert text to speech by
How to set the default option of either or both
espeak commands at
~/.config/speech-dispatcher/speechd.conf for the clients Chromium (unix socket connect), and if possible Firefox, when
window.speechSynthesis.speak() is called by the browsers?