问题
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