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?
x-webkit-speech is the attribute which needs to be added to an input box element.
You can also start speech input by focussing the element and pressing Ctrl + Shift + . on Windows, or Command + Shift + .
Answering my own question:
Just made a Github project for this purpose: https://github.com/Daniel-Hug/speech-input
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With