VoiceManager

open class VoiceManager : SygicContext.OnContextDestroyListener

Manages voice operations.

Types

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

Functions

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.
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.
Link copied to clipboard
open fun getVoice(): VoiceEntry
Link copied to clipboard
open fun onContextDestroy()
Link copied to clipboard
open fun setVoice(voiceEntry: VoiceEntry)
Sets the selected voice.