Voice Manager
Manages voice operations.
Types
Functions
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.
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.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the selected voice.