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) |
Manages voice operations.
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
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
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.
callback | InstalledVoicesCallback |
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.
callback | InstalledVoicesCallback |
VoiceEntry com.sygic.sdk.voice.VoiceManager.getVoice | ( | ) |
void com.sygic.sdk.voice.VoiceManager.setVoice | ( | VoiceEntry | voiceEntry | ) |
Sets the selected voice.