html - Firefox 和语音合成 API

标签 html firefox text-to-speech

我正在创建如下链接中的 HTML5 语音合成应用程序。

http://updates.html5rocks.com/2014/01/Web-apps-that-talk---Introduction-to-the-Speech-Synthesis-API

Windows7 和 Android Chrome33beta 或 Mac 的 safari 运行良好。

但 Windows7-Firefox 27 似乎支持 Speech-Synthesis-API,但无法使用,因为返回空语音列表。

有什么解决办法吗?

最佳答案

检查您的浏览器是否支持 Speech Synthesis API
http://caniuse.com/#feat=speech-synthesis

你可以用modernizr检查一下
http://v3.modernizr.com/download/#-speechsynthesis

如果浏览器不支持,可以使用meSpek.js
http://www.masswerk.at/mespeak/

关于html - Firefox 和语音合成 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21659358/

相关文章:

html输入字体

JavaScript Canvas : in firefox is empty

javascript - 在 Android Webview 上选择文本转速度的语言

html - 相邻的同级选择器对我的标记不起作用

html - 在开始时声明文档类型更改标题的外观

html - Firefox CSS Float 和 NoWrap 错误

ios - iOS 中的中文文本转语音

ios - iPhone 上的德语文本转语音(Flite/Festival 语音?其他选项?)

javascript - 在 JavaScript 中测量文本大小

javascript - 通过javascript关闭Firefox浏览器