gue*_*314 5 firefox browser scripts chromium espeak
目前,当语音合成标记语言(SSML) 设置为Chromium或Firefox Web 浏览器的实例text属性时,SSML 不会在 *nix 处解析,如呼叫的音频输出所反映的那样。SpeechSynthesisUtterancespeechSynthesis.speak()
当 Chromium 启动并带有--enable-speech-dispatcher标志时speech-dispatcher会自动启动man speech-dispatcher
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.
Run Code Online (Sandbox Code Playgroud)
反映在任务管理器
speech-dispatcher --spawn-communication-method unix_socket --socket-path /run/user/1000/speech-dispatcher/speechd.sock
Run Code Online (Sandbox Code Playgroud)
跑步
spd-conf -u
Run Code Online (Sandbox Code Playgroud)
speech-dispatcher在~/.config其中创建用户配置文件
espeak 被设置为默认模块
DefaultModule espeak
Run Code Online (Sandbox Code Playgroud)
espeak有一个m选择
-m Interpret SSML markup, and ignore other < > tags
Run Code Online (Sandbox Code Playgroud)
我不完全确定是否spd-say在调用时window.speechSynthesis.speak()不调用;spd-say有一个x选项可以达到与上面相同的结果man spd-say
-x, --ssml Set SSML mode on (default: off)
Run Code Online (Sandbox Code Playgroud)
该speech-dispatcher文件指出,用户配置文件可以用来设置参数为特定客户
4.1.6 参数设置命令
可以使用以下参数设置命令。对于配置和历史客户端,还有用于为其他连接和所有连接设置值的功能。它们在下面单独列出。
C API 函数:
int spd_set_data_mode(SPDConnection *connection, SPDDataMode mode)设置 Speech Dispatcher 数据模式。目前,支持纯文本和 SSML。如果您想使用索引标记或在文本中包含语音参数的更改,SSML 尤其有用。mode 是请求的数据模式:
SPD_DATA_TEXT或SPD_DATA_SSML。
要求:
使用本地程序的现有功能解析 SSML 设置的text属性,SpeechSynthesisUtterance该程序被调用以将文本转换为语音speech-dispatcher。
题:
如何为客户端 Chromium(unix 套接字连接)和 Firefox(如果可能)设置-xforspd-say和-mforespeak命令中的一个或两个的默认选项,浏览器~/.config/speech-dispatcher/speechd.conf何时window.speechSynthesis.speak()调用?
| 归档时间: |
|
| 查看次数: |
340 次 |
| 最近记录: |