com.sygic.sdk.voice.VoiceManager Class Reference

Classes

interface  DefaultVoicesCallback
 
interface  InstalledVoicesCallback
 

Public Member Functions

void setVoice (VoiceEntry voiceEntry)
 
VoiceEntry getVoice ()
 
void getInstalledVoices (@NonNull final InstalledVoicesCallback callback)
 
void getInstalledVoices (@NonNull final InstalledVoicesCallback callback, @Nullable Executor executor)
 
void getDefaultTtsLocale (@NonNull DefaultVoicesCallback callback)
 
void getDefaultTtsLocale (@NonNull DefaultVoicesCallback callback, @Nullable Executor executor)
 

Detailed Description

Manages voice operations.

Member Function Documentation

◆ getDefaultTtsLocale() [1/2]

void com.sygic.sdk.voice.VoiceManager.getDefaultTtsLocale ( @NonNull DefaultVoicesCallback  callback)

Gets string representing default TTS locale asynchronously. Callback will be called on main thread. Value corresponds to string returned by Locale#toString() Note: Android API level 21 required, otherwise empty string will be returned

◆ getDefaultTtsLocale() [2/2]

void com.sygic.sdk.voice.VoiceManager.getDefaultTtsLocale ( @NonNull DefaultVoicesCallback  callback,
@Nullable Executor  executor 
)

Gets string representing default TTS locale asynchronously. Callback will be called on provided executor or on main thread if null. Value corresponds to string returned by Locale#toString() Note: Android API level 21 required, otherwise empty string will be returned

◆ getInstalledVoices() [1/2]

void com.sygic.sdk.voice.VoiceManager.getInstalledVoices ( @NonNull final InstalledVoicesCallback  callback)

Returns the list of VoiceEntry objects in InstalledVoicesCallback callback containing info about voices installed on device. Callback will be called on main thread.

Parameters
callbackInstalledVoicesCallback

◆ getInstalledVoices() [2/2]

void com.sygic.sdk.voice.VoiceManager.getInstalledVoices ( @NonNull final InstalledVoicesCallback  callback,
@Nullable Executor  executor 
)

Returns the list of VoiceEntry objects in InstalledVoicesCallback callback containing info about voices installed on device. Callback will be called on provided executor or on main thread if null.

Parameters
callbackInstalledVoicesCallback

◆ getVoice()

VoiceEntry com.sygic.sdk.voice.VoiceManager.getVoice ( )

◆ setVoice()

void com.sygic.sdk.voice.VoiceManager.setVoice ( VoiceEntry  voiceEntry)

Sets the selected voice.


The documentation for this class was generated from the following file: