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

StackOverflow https://stackoverflow.com/questions/23188951

  •  06-07-2023
  •  | 
  •  

Frage

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?

War es hilfreich?

Lösung

Answering my own question:

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

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top