VoiceManager

open class VoiceManager

Manages voice operations.

Types

DefaultVoicesCallback
Link copied to clipboard
interface DefaultVoicesCallback
InstalledVoicesCallback
Link copied to clipboard
interface InstalledVoicesCallback

Functions

getDefaultTtsLocale
Link copied to clipboard
open fun getDefaultTtsLocale(@NonNull callback: VoiceManager.DefaultVoicesCallback)
open fun getDefaultTtsLocale(@NonNull callback: VoiceManager.DefaultVoicesCallback, @Nullable executor: Executor)
Gets string representing default TTS locale asynchronously.
getInstalledVoices
Link copied to clipboard
open fun getInstalledVoices(@NonNull callback: VoiceManager.InstalledVoicesCallback)
open fun getInstalledVoices(@NonNull callback: VoiceManager.InstalledVoicesCallback, @Nullable executor: Executor)
Returns the list of VoiceEntry objects in InstalledVoicesCallback callback containing info about voices installed on device.
getVoice
Link copied to clipboard
open fun getVoice(): VoiceEntry
setVoice
Link copied to clipboard
open fun setVoice(voiceEntry: VoiceEntry)
Sets the selected voice.