x-webkit-speech and panel/detached_panel windows

269 views
Skip to first unread message

Raphael Cohen

unread,
Jan 9, 2013, 5:52:06 AM1/9/13
to chromium-...@chromium.org
Hi all.
Found an interesting bug I think.
Make a simple html page with a speech to text input with x-webkit-speech, like this for exemple :

<html><body>
<input type="text" id="speech" x-webkit-speech />
</body></html>

If you open it in chrome and you click the microphone in the input, everything works Ok.

Now, create a plain extension, with "permissions": ["tabs"], and in the popup script somewhere create a panel or detached_panel window pointing to the previous html page. For exemple :

chrome.windows.create({
url: "index.html",
width: 320,
height: 240,
focused: true,
type: "detached_panel"
});

Now click on the microphone in the input : nothing happens, nada.

Is this a known bug ?

Also, I have tested with type="popup" or type="normal" and it works Ok, so the bug seems to be only on panel and detached_panel windows.

Thanks for any clue.

Mike West

unread,
Jan 28, 2013, 10:38:28 AM1/28/13
to chromium-...@chromium.org
Hi Raphael,

It sounds like you're experiencing https://code.google.com/p/chromium/issues/detail?id=163583, which the engineering team has marked as WontFix. The new WebSpeech API that should be rolling out with Chrome 25 is noted as a potential solution. See http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API for some detail about how that API works.

-mike

Raphael Cohen

unread,
Feb 3, 2013, 2:18:46 PM2/3/13
to chromium-...@chromium.org
Hi Mike.
Thanks for your answer. The WebSpeech API isn't available yet for current "official" chrome version (24 at the time I'm writing this). So I have used the experimental speech input API for the moment :
Reply all
Reply to author
Forward
0 new messages