htmlgoogle-chromespeech-recognitionvoicevoice-recognition

What are language codes in Chrome's implementation of the HTML5 speech recognition API?


Chrome implemented the HTML5 speech recognition API. Many languages are supported. I wanna know which languages are supported and each language's corresponding code which is used in the HTML element's lang attribute.

For instance:

Thank you!


Solution

  • Ok, if it is not published, we can try to at least figure this out. Let me put this table for the beginning and we will refine it if someone has more information.

    I'm making assumption that supported languages shall be similar to those supported by voice search and that google uses standard language codes and does that consistently across its services.

    I've looked up languages supported by voice search on wikipedia

    I've found language codes here, on google language settings page and here

    EDIT: I've experimented with backend voice recognition service. I've run a series of tests where I've passed the same english speech sample to the API but specified different dialect every time. It looks like:

    I treat a dialect as supported if recognition gives a different result from en-US and from main dialect for the language. Still, to verify it 100% we need to run samples for each language.

    Legend

    Languages