Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
858 views
How to pipe text output to speech dispatcher?
I am not getting the command pipe to work for `say` and `spd-say`. Specifically, I want to pipe the output of `fortune` to `spd-say`, which seems more advanced than `say`. I tried the usual pipe construction fortune | spd-say Other commands do work, like fortune | wc Apparently, the speech dispatche...
I am not getting the command pipe to work for say and spd-say. Specifically, I want to pipe the output of fortune to spd-say, which seems more advanced than say. I tried the usual pipe construction fortune | spd-say Other commands do work, like fortune | wc Apparently, the speech dispatcher commands treat the piped input different from the ordinary arguments. I would like to fix this and understand what is going on.
Rainer Glüge (113 rep)
Jan 2, 2021, 09:03 PM • Last activity: Jan 2, 2021, 09:51 PM
3 votes
1 answers
354 views
How to set options of commands called by browser?
Presently when [Speech Synthesis Markup Language][1] (SSML) is set as at `text` property of [`SpeechSynthesisUtterance`][2] instance at [Chromium][3] or [Firefox][4] web browsers the SSML is not parsed at *nix as reflected at audio output of [`speechSynthesis.speak()`][5] call. Browsing the source c...
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 speechSynthesis.speak() call. Browsing the source code of the browsers speech-dispatcher appears to be called by .speak() where either spd-say or espeak , if configured to do so, could be called by speech-dispatcher. spd-say has an x option -x, --ssml Set SSML mode on (default: off) espeak has an m option -m Interpret SSML markup, and ignore other tags Have created a user configuration file for speech-dispatcher using spd-conf -u The 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: SPD_DATA_TEXT or SPD_DATA_SSML. Questions 1. How to set the default option of either or both -x for spd-say and -m for espeak commands at ~/.config/speech-dispatcher/speechd.conf for the clients Chromium and Firefox browsers when .speak() is called? 2. How to adjust the source code at Chromium and Firefox browsers to set the -x or -m options by default for the text set at SpeechSpeechSynthesisUtterance text property which is passed to window.speechSynthesis.speak()?
guest271314 (119 rep)
Dec 30, 2017, 08:40 PM • Last activity: Jan 24, 2018, 01:52 PM
Showing page 1 of 2 total questions