javascriptspeech-synthesiswebspeech-api

Is there a list of languages suppored by the Web Speech API's SpeechSynthesisUtterance interface?


I'm using the SpeechSynthesisUtterance interface from the Web Speech API] and cannot find a list of the languages supported.

Does anybody know how to get a list of the languages containing the code and the name of the language?

For example:

English-US  en-US  
Japanese    ja-JA

Solution

  • https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang

    Review this. But to make a very long story short, the language setter/getter returns a BCP-47 language tag. List here. No guarantee that any are particularly supported per a browser, as a comprehensive list of supported values doesn't actually exist.