devxlogo

Enabling Speech Input

Enabling Speech Input

In HTML5 and later, you can add speech recognition to a text input, as simple as adding an attribute to your  elements. We can enable speech input by using the x-webkit-speech attribute like this:

When speech input is enabled the element, you should see a small microphone icon displayed on the right of the input. Clicking on this icon will launch a small tooltip to show that your voice is now being recorded. 

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist