Classes | |
interface | VoiceGender |
interface | VoicePackageStatus |
Public Member Functions | |
VoiceEntry (String id, @VoiceGender int gender, String name, String language, boolean isTts, long sizeOnDisk, @VoicePackageStatus int status, @Nullable String permanentId) | |
int | getGender () |
String | getName () |
String | getLanguage () |
boolean | isTts () |
long | getSizeOnDisk () |
int | getStatus () |
void | playSample () |
String | getPermanentId () |
boolean | equals (Object o) |
int | hashCode () |
String | toString () |
Static Public Member Functions | |
static void | enhanceTtsNames (final List< VoiceEntry > entries) |
Return information about downloaded voice packages.
com.sygic.sdk.voice.VoiceEntry.VoiceEntry | ( | String | id, |
@VoiceGender int | gender, | ||
String | name, | ||
String | language, | ||
boolean | isTts, | ||
long | sizeOnDisk, | ||
@VoicePackageStatus int | status, | ||
@Nullable String | permanentId | ||
) |
Default constructor.
|
static |
boolean com.sygic.sdk.voice.VoiceEntry.equals | ( | Object | o | ) |
int com.sygic.sdk.voice.VoiceEntry.getGender | ( | ) |
Returns the VoiceGender of the voice skin.
String com.sygic.sdk.voice.VoiceEntry.getLanguage | ( | ) |
Returns the human readable language name of the voice skin.
String com.sygic.sdk.voice.VoiceEntry.getName | ( | ) |
Returns the name of the voice package.
String com.sygic.sdk.voice.VoiceEntry.getPermanentId | ( | ) |
Returns a permanent id for a voice. Only installed and system (tts) voices have permanent id. Id is guaranteed to stay same for a voice and can be matched with a VoiceEntry from VoiceManager#getInstalledVoices(VoiceManager.InstalledVoicesCallback) or VoiceDownload#getAvailableVoiceList(VoiceDownload.AvailableVoicesCallback) unless it is uninstalled or a different tts engine is picked in android system settings.
long com.sygic.sdk.voice.VoiceEntry.getSizeOnDisk | ( | ) |
Returns the size of the entry after unzipping to the device.
int com.sygic.sdk.voice.VoiceEntry.getStatus | ( | ) |
Returns the VoicePackageStatus of the voice package.
int com.sygic.sdk.voice.VoiceEntry.hashCode | ( | ) |
boolean com.sygic.sdk.voice.VoiceEntry.isTts | ( | ) |
Returns whether the voice is TextToSpeech or is not.
void com.sygic.sdk.voice.VoiceEntry.playSample | ( | ) |
String com.sygic.sdk.voice.VoiceEntry.toString | ( | ) |