|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.speech.srec.Srec
public class Srec
Simple, synchronous speech recognizer, using the SREC package.
| Nested Class Summary | |
|---|---|
class |
Srec.Grammar
Represents a grammar loaded into the recognizer. |
| Constructor Summary | |
|---|---|
Srec(String configFile)
Create an instance of a SREC speech recognizer. |
|
| Method Summary | |
|---|---|
void |
dispose()
Clean up resources. |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
String |
getResult(int index,
String key)
Get a result value |
int |
getResultCount()
Get the number of recognition results. |
String[] |
getResultKeys(int index)
Get a set of keys for the result. |
Srec.Grammar |
loadGrammar(String g2gFileName)
Creates a Srec recognizer. |
boolean |
process()
Process some audio and return the next state. |
void |
reset()
Reset the recognizer to the idle state. |
void |
start()
Start recognition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Srec(String configFile) throws IOException
configFile - pathname of the baseline*.par configuration file.
IOException| Method Detail |
|---|
public Srec.Grammar loadGrammar(String g2gFileName)
throws IOException
g2gFileName - pathname of a g2g grammar file.
IOExceptionpublic void start()
public boolean process()
public int getResultCount()
public String[] getResultKeys(int index)
index - index of result.
public String getResult(int index,
String key)
index - index of the result.key - key of the result.
public void reset()
public void dispose()
protected void finalize()
ObjectNote: The virtual machine assumes that the implementation in class Object is empty.
finalize in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||