Can I use the Web Speech API in a Chrome app?

↘锁芯ラ 提交于 2019-12-11 08:44:32

问题


Can I use the Web Speech API in a Chrome app?

If anyone has any knowledge, please let me know. Thank you


回答1:


Chrome Apps have a special TTS API available to them. According to this bug report, the Web Speech API is not available to extensions, but it doesn't say anything about packaged apps. Your best bet is probably to just try it and see if it works.




回答2:


According to the Web API section in the chrome apps section:

In addition to the chrome.* APIs, extensions can use all the APIs that the browser provides to web pages and apps. If the browser doesn't support an API you want to use, you can bundle additional API libraries into your extension.

Don't worry about the term 'extension' in the quote above, it seems the documentation was copied from the extensions' web api section.



来源:https://stackoverflow.com/questions/25960611/can-i-use-the-web-speech-api-in-a-chrome-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!