Voice Manager
Manages voice operations.
Types
Link copied to clipboard
interface DefaultVoicesCallback
Link copied to clipboard
interface InstalledVoicesCallback
Link copied to clipboard
interface OnGetVoiceCallback
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
open fun addOnPlaySampleCallback(@NonNull callback: VoiceManager.OnPlaySampleCallback, @Nullable executor: Executor)
Link copied to clipboard
open fun addOnSetVoiceCallback(@NonNull callback: VoiceManager.OnSetVoiceCallback, @Nullable executor: Executor)
Link copied to clipboard
open fun getDefaultTtsLocale(@NonNull callback: VoiceManager.DefaultVoicesCallback, @Nullable executor: Executor)
Gets string representing default TTS locale asynchronously.
Link copied to clipboard
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.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the selected voice.