there might be scenarios where client do NOT want to download a model if it will be too large to download over mobile network or dose not want to take up that much space.
so knowing it in advance would be useful.
i also tried loading my own language code and it fails
it would be a lot easier to just be able to enumerate all the supported language model, and how large they are and if they are already downloaded or not and present them in a <select> for the user to be able to choose between instead of playing a guessing game of what is available or not.
speechSynthesis have something similar already: speechSynthesis.getVoices()
there might be scenarios where client do NOT want to download a model if it will be too large to download over mobile network or dose not want to take up that much space.
so knowing it in advance would be useful.
i also tried loading my own language code and it fails
it would be a lot easier to just be able to enumerate all the supported language model, and how large they are and if they are already downloaded or not and present them in a
<select>for the user to be able to choose between instead of playing a guessing game of what is available or not.speechSynthesis have something similar already:
speechSynthesis.getVoices()