public class TTSVoiceDescriptor
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
TTSVoiceDescriptor(java.util.Locale locale) |
TTSVoiceDescriptor(java.lang.String engine,
java.util.Locale locale,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEngine()
Returns the id of the engine that provides this voice.
|
java.util.Locale |
getLocale()
Returns the locale, or language, represented by this voice.
|
java.lang.String |
getName()
Returns the name of the voice.
|
int |
hashCode() |
static TTSVoiceDescriptor |
parse(java.lang.String value)
The opposite of toString, this parses the voice description from a string in the format of "engineId/locale/name"
|
java.lang.String |
toString() |
public TTSVoiceDescriptor(java.util.Locale locale)
public TTSVoiceDescriptor(java.lang.String engine, java.util.Locale locale, java.lang.String name)
public java.util.Locale getLocale()
public java.lang.String getName()
public java.lang.String getEngine()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static TTSVoiceDescriptor parse(java.lang.String value)
value
-