getDefaultTtsLocale

open fun getDefaultTtsLocale(@NonNull callback: VoiceManager.DefaultVoicesCallback)

Gets string representing default TTS locale asynchronously. Callback will be called on main thread. Value corresponds to string returned by toString Note: Empty string will be returned if Android API level is lower than 21 or there is no default locale for used TTS Engine

open fun getDefaultTtsLocale(@NonNull callback: VoiceManager.DefaultVoicesCallback, @Nullable executor: Executor)

Gets string representing default TTS locale asynchronously. Callback will be called on provided executor or on main thread if null. Value corresponds to string returned by toString Note: Empty string will be returned if Android API level is lower than 21 or there is no default locale for used TTS Engine