HTML5 Speech Attribute
7 posts
Page 1 of 1
After watching this video. I thought I'd try the HTML5 speech attribute myself. It's very simple, all you need is the following code.
JavaScript:
Hope you guys enjoy this, and find it useful. If you don't well at least it's fun to mess with
JavaScript:
Code: Select all
HTML:
if (document.createElement("input").webkitSpeech === undefined) {
var ns = document.getElementsByClassName("nosupport");
for (i = 0, il = ns.length; i < il; i++) ns[i].style.display = "block";
}
Code: Select all
That's it, that's the speech attribute in HTML5. It only works in Chrome at the moment, however it is something to mess around with, and is pretty fun to use, especially using the built in development tools inside Chrome.<input type="text" x-webkit-speech="x-webkit-speech" />
Hope you guys enjoy this, and find it useful. If you don't well at least it's fun to mess with

You do not have the required permissions to view the files attached to this post.
Very nice piece of info.
But do to ( x-webkit-speech ) i dont think it would work for IE.
Just Chrome, FF2, Safari, Opera. Im not sure I will have to test it out to see.
But do to ( x-webkit-speech ) i dont think it would work for IE.
Just Chrome, FF2, Safari, Opera. Im not sure I will have to test it out to see.
What is this for ?
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
It's just to show the new HTML5 Speech Attribute added in Chrome.
I found a demo here: http://www.jeremyselier.com/entry/speech-attribute-demo
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
There's demos all over the web, this is just a tutorial on how you can use it.
BTW: You don't need the javascript, just...
BTW: You don't need the javascript, just...
Code: Select all
The javascript is only there for support<input type="text" x-webkit-speech />
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023