|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This Interface allows accessing a word recognized by an ASR engine.
| Method Summary | |
String |
getFinalizedWord()
Deprecated. instead use the method getRecognizedWord() |
byte[] |
getRecognizedWord()
return a byte array containing the recognized word |
String |
getTag()
return a grammar associated tag or null if none |
int |
getWordBegin()
return a pointer to the beginning of the word in the utterance, in milliseconds |
String |
getWordEncoding()
return a String containing the recognized word's encoding. |
int |
getWordEnd()
return a pointer to the end of the word in the utterance, in milliseconds |
| Method Detail |
public String getFinalizedWord()
getRecognizedWord()
public byte[] getRecognizedWord()
getWordEncoding()public String getTag()
public int getWordBegin()
public int getWordEnd()
public String getWordEncoding()
While the returned encoding is either "UTF-8" or "UTF-16", the XML parser executes a pre-processing and extracts the Unicode characters of the recognized's word. In those cases, the recognized word's byte array will not anymore be UTF-8 or UTF-16 encoded but directly a Unicode byte array.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||