We are trying to infer quality based on package name, then localised string, from voiceURI.
The issue is that when guessing from a localised string, using apple.json data, we cannot expect the voiceURI to be neither localised based on the voice.lang nor navigator.languages. It is indeed localised based on the system’s language.
We could check every string for every language but we have conflicting pairs. For instance, in English premium is mapped to high quality, while it is mapped to normal in French.
So we need to guess the effective locale.
We could probably try guessing from navigator.languages, then double-checking if we can find de qualité in any of the browser voices, etc. And implement something best effort.
We are trying to infer quality based on package name, then localised string, from
voiceURI.The issue is that when guessing from a localised string, using
apple.jsondata, we cannot expect thevoiceURIto be neither localised based on thevoice.langnornavigator.languages. It is indeed localised based on the system’s language.We could check every string for every language but we have conflicting pairs. For instance, in English
premiumis mapped tohighquality, while it is mapped tonormalin French.So we need to guess the effective locale.
We could probably try guessing from
navigator.languages, then double-checking if we can findde qualitéin any of the browser voices, etc. And implement something best effort.