Voice Manager
Manages voice operations.
Types
Default Voices Callback
Link copied to clipboard
interface DefaultVoicesCallback
Content copied to clipboard
Installed Voices Callback
Link copied to clipboard
interface InstalledVoicesCallback
Content copied to clipboard
Functions
get Default Tts Locale
Link copied to clipboard
open fun getDefaultTtsLocale(@NonNull callback: VoiceManager.DefaultVoicesCallback)
Content copied to clipboard
open fun getDefaultTtsLocale(@NonNull callback: VoiceManager.DefaultVoicesCallback, @Nullable executor: Executor)
Content copied to clipboard
Gets string representing default TTS locale asynchronously.
get Installed Voices
Link copied to clipboard
open fun getInstalledVoices(@NonNull callback: VoiceManager.InstalledVoicesCallback)
Content copied to clipboard
open fun getInstalledVoices(@NonNull callback: VoiceManager.InstalledVoicesCallback, @Nullable executor: Executor)
Content copied to clipboard
Returns the list of VoiceEntry objects in InstalledVoicesCallback callback containing info about voices installed on device.
get Voice
Link copied to clipboard
on Context Destroy
Link copied to clipboard
open fun onContextDestroy()
Content copied to clipboard
set Voice
Link copied to clipboard
Sets the selected voice.