With the use of Speech Recognition API, you can enable the web browser to take speech input on the page and convert it into text.
For accessing this on the page need to allow microphone access by the user.
In this tutorial, I am creating an example where allowing the users to search posts by speech. On the basis of speech recognition display response on the screen using jQuery AJAX.