And added a “getLanguage” derived from Locale.getDefault() , the current system locale.

Other linked subject, possibility to store custom parameters: Every services are serialized, at shutdown a json is generated. Next restart the json is parsed. The circle is complete. Great place for a configuration place.

Comment viewing options

I think being able to set MRL's Locale is a very good idea ..
Your absolutely right about how you might not want the Locale of MRL to be the same as your computers default Locale. And I agree that the Runtime is a good place to put this, such that other services can ask or depdend on the Runtime's setting.

I don't think SpeechSynthesis should have a .setLanguage .. it should only have setVoice because setLanguage is indeterminate .. however

We could have SpeechSynthesis.getVoices(locale) - which returns a list of voices that are made to support a particular language.

That way in InMoov you could write a function which "tries" to get an appropriate voice for InMoov.setLanguage, and perhaps defaults to a "default" voice if no match is found.

Nice moz4r :) .. I started it up and played with the buttons ... was fun :)

I understand the concept of "one language switch rules them all" and I believe I can attempt to accomidate that with the Runtime.getLocale() ..
I've got a lot more polish to do - but I understand it would be nice to do something like this