I noticed this warning in Chrome devtool\'s console:
The x-webkit-speech input field attribute is deprecated. Please use the JavaScript A
x-webkit-speech
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.
Answering my own question:
Just made a Github project for this purpose: https://github.com/Daniel-Hug/speech-input