简体   繁体   English

有没有一种方法可以请求访问Chrome扩展程序弹出窗口的麦克风?

[英]Is there a way to request microphone access for a chrome extension popup?

I'm currently playing around with WebKit speech API and trying to implement it in a chrome extension. 我目前正在使用WebKit语音API,并尝试在chrome扩展中实现它。 Unfortunately, I'm having many troubles with getting the typical pop up that appears when a site asks for microphone permission (allowing you to accept or decline). 不幸的是,当网站要求获得麦克风许可(允许您接受或拒绝)时,出现典型的弹出窗口会给我带来很多麻烦。 Any idea on how to accomplish this? 关于如何做到这一点的任何想法? I have a div which triggers the web speech recognition function on click. 我有一个div,可在点击时触发网络语音识别功能。 Thanks so much! 非常感谢! All help is appreciated! 感谢所有帮助!

本地方法getUserMedia是您想要的,并且不要忘记声明audioCapture权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM