如何使Chrome浏览器扩展程序弹出窗口中的语音webkit工作? [英] How to make speech webkit work in Chrome extension popup?
问题描述
简单代码像这样
< html>
< body>
< input type =textid =txtSearchx-webkit-speech />
< / body>
< / html>
在HTML页面中正常工作。
我试图在我的Google Chrome浏览器扩展程序的弹出窗口中使用相同的代码。但是在点击麦克风图标时,弹出窗口中没有任何反应。
使用弹出窗口代码有一些限制吗?或者我错过了其他的东西?
这个错误似乎还没有被修复:
https://code.google.com/p/chromium/issues/detail?can=2&q=102473&colspec=ID%20Pri%20Mstone%20ReleaseBlock%20OS%20Area% 20Feature%20Status%20Owner%20Summary& id = 102473
另外,有人建议使用chrome语音输入API:
https://developer.chrome.com/extensions/experimental.speechInput.html
但是:
1.这个API是试验性的,需要Chrome浏览器检查实验API标志(这不是默认设置)。
2.我已经在几个操作系统上测试过它,并且它让Win 23上的chrome 23崩溃,这非常烦人。
A simple code like this
<html>
<body>
<input type="text" id="txtSearch" x-webkit-speech />
</body>
</html>
works correctly in an HTML page.
I am trying to use the same code in the popup of my Google Chrome extension. But on clicking the mic icon, nothing happens in the popup.
Are there some restrictions to use code like this for popups? Or am I missing something else?
The bug still hasn't been fixed it seems : https://code.google.com/p/chromium/issues/detail?can=2&q=102473&colspec=ID%20Pri%20Mstone%20ReleaseBlock%20OS%20Area%20Feature%20Status%20Owner%20Summary&id=102473
Furthemore, someone recommends to use the chrome speech input API : https://developer.chrome.com/extensions/experimental.speechInput.html but : 1. This API is experimental and requires Chrome to have the "experimental API" flag checked (which isn't by default). 2. I have tested it on a few OS, and it makes chrome 23 crash on Win XP, which is very annoying.
这篇关于如何使Chrome浏览器扩展程序弹出窗口中的语音webkit工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!