javascript - Getting access to users mic via chrome background extention or background app -
i trying have app pick key words "okay chrome" it's not picking sort of audio. i'm not new javascript, new making chrome apps/extensions. there sort of way, might have missed, allows developers mic input unpackaged app/extent ion, if so, how?
presently, have annyang library running background script , background scripts have following
function openbrowser(){ chrome.windows.create({ url: chrome.extension.geturl('main.html'), type: 'panel' }); }; if (annyang) { var commands = { 'ok chrome': openbrowser }; annyang.addcommands(commands); annyang.start(); annyang.debug(); }
this hasn't been implemented yet (at least in normal chrome), supposed work chrome.audio
api.
you'd declare following permissions:
"permissions": [ "audio", ... ],
and you'd access methods outlined here: https://developer.chrome.com/apps/audio
as of works 1 dev channel chrome.
Comments
Post a Comment