Reputation: 471
I have implemented tts in my android app. It supports all languages which is supported by default TTS in android device. But is it possible to get the name of language which is selected in default TTS i.e name of language which is selected in Google TTS in the Settings?
Upvotes: 2
Views: 1306
Reputation: 7512
Until API 18, you would have to use getLanguage()
.
In API 18 getDefaultLanguage()
was introduced.
And starting with API 21, you should use getDefaultVoice()
.getLocale()
.
Upvotes: 5