com.sygic.sdk.voice.VoiceEntry Class Reference

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)
 

Detailed Description

Return information about downloaded voice packages.

Constructor & Destructor Documentation

◆ VoiceEntry()

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.

Member Function Documentation

◆ enhanceTtsNames()

static void com.sygic.sdk.voice.VoiceEntry.enhanceTtsNames ( final List< VoiceEntry entries)
static

◆ equals()

boolean com.sygic.sdk.voice.VoiceEntry.equals ( Object  o)

◆ getGender()

int com.sygic.sdk.voice.VoiceEntry.getGender ( )

Returns the VoiceGender of the voice skin.

◆ getLanguage()

String com.sygic.sdk.voice.VoiceEntry.getLanguage ( )

Returns the human readable language name of the voice skin.

◆ getName()

String com.sygic.sdk.voice.VoiceEntry.getName ( )

Returns the name of the voice package.

◆ getPermanentId()

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.

◆ getSizeOnDisk()

long com.sygic.sdk.voice.VoiceEntry.getSizeOnDisk ( )

Returns the size of the entry after unzipping to the device.

◆ getStatus()

int com.sygic.sdk.voice.VoiceEntry.getStatus ( )

Returns the VoicePackageStatus of the voice package.

◆ hashCode()

int com.sygic.sdk.voice.VoiceEntry.hashCode ( )

◆ isTts()

boolean com.sygic.sdk.voice.VoiceEntry.isTts ( )

Returns whether the voice is TextToSpeech or is not.

◆ playSample()

void com.sygic.sdk.voice.VoiceEntry.playSample ( )

◆ toString()

String com.sygic.sdk.voice.VoiceEntry.toString ( )

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