|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPhoneInfo
public class PhoneInfo
Provides dynamic information associated with a phoneme.
SpeakableEvent
,
PHONEME_STARTED
Field Summary | |
---|---|
static int |
UNKNOWN_DURATION
A value signifying that the duration of a phone is not known. |
Constructor Summary | |
---|---|
PhoneInfo(String phoneme,
int duration)
Constructs a phone instance with associated information. |
Method Summary | |
---|---|
int |
getDuration()
Gets the anticipated duration of this phone realization. |
String |
getPhoneme()
Gets the base phoneme name for this phone realization. |
String |
toString()
Returns a printable String . |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_DURATION
getDuration()
,
Constant Field ValuesConstructor Detail |
---|
public PhoneInfo(String phoneme, int duration)
The name of the base phoneme
is specified using Unicode IPA.
The duration
of the phoneme
is specified in milliseconds.
The duration
may be UNKNOWN_DURATION
if it is unknown.
phoneme
- the name of the phonemeduration
- the anticipated duration of this phonemegetPhoneme
,
getDuration()
,
UNKNOWN_DURATION
Method Detail |
---|
public String getPhoneme()
This is the name of the phoneme using Unicode IPA.
public int getDuration()
The duration is measured in milliseconds.
The duration may be UNKNOWN_DURATION
if it is unknown.
UNKNOWN_DURATION
public String toString()
String
. Useful for event-logging and debugging.
toString
in class Object
String
.
|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API 2.0,
Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.