Can the input with attr "x-webkit-speech" be in a language other than English?

Currently, Chrome's x-webkit speech seems to work well with English, can it be with other languages?

+6
source share
3 answers

Add the <body> attribute as

 <body lang="zh-Hans"> 

There is no official document for this moment, just my practice.

+4
source

You can also add the lang attribute to the <input> element:

 <input type="text" lang="es-MX" x-webkit-speech speech onwebkitspeechchange="this.form.submit();" /> 

This way you can have multiple controls in different languges on your page.

Hurrah!

+8
source

The x-webkit-speech attribute has been deprecated for over a year. In favor of the JavaScript speech recognition API. I created a JS module that implements the API for <input> s:

Voice input | Github

0
source

Source: https://habr.com/ru/post/887108/


All Articles