There is a speech API, but it currently only works in Chrome:
Web Speech API - Web APIs | MDN[
^]
Can I use... Speech Recognition API[
^]
Firefox has a flag to enable it, but it doesn't do anything yet:
Quote:
Note that currently only the speech synthesis part is available in Firefox Desktop — the speech recognition part will be available soon, once the required internal permissions are sorted out.
It's currently "in development" for Edge, but not for IE11:
The status of Web Speech API (input) in Microsoft Edge is In Development - Microsoft Edge Development[
^]
It's not supported in Android or iOS Safari, but it looks like it might work in Chrome for Android and Samsung Internet.
So the answer is, it depends on which browsers you need to support. If you need to support a browser which doesn't currently implement the API, then you won't be able to do it.