Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

x-webkit-speech is deprectated. A JS replacement for simple speech input for <input>?

Tags:

I noticed this warning in Chrome devtool's console:

The x-webkit-speech input field attribute is deprecated. Please use the JavaScript API instead.

So what's the best JS API replacement for simple speech input on input fields?

Perhaps there exists a drop-in JS module that will handle it for me?

like image 762
Web_Designer Avatar asked Apr 21 '14 00:04

Web_Designer


People also ask

What is X Webkit speech?

x-webkit-speech is the attribute which needs to be added to an input box element.

How do you do voice input in HTML?

You can also start speech input by focussing the element and pressing Ctrl + Shift + . on Windows, or Command + Shift + .


2 Answers

Answering my own question:

Just made a Github project for this purpose: https://github.com/Daniel-Hug/speech-input

like image 71
Web_Designer Avatar answered Sep 23 '22 19:09

Web_Designer


There is a JavaScript SpeechRecognition API that does text-to-speech and speech-to-text. Not many browsers support it but Chrome should have support.

like image 38
0e4ef622 Avatar answered Sep 22 '22 19:09

0e4ef622