Types

Link copied to clipboard
fun interface DefaultVoicesCallback
Link copied to clipboard
Link copied to clipboard
fun interface OnGetVoiceCallback

Functions

Link copied to clipboard
Link copied to clipboard

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 Locale.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

Link copied to clipboard

Returns the list of VoiceEntry objects in InstalledVoicesCallback callback containing info about voices installed on device. Callback will be called on provided executor or on main thread if null.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setVoice(voiceEntry: VoiceEntry)

Sets the selected voice.