|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biocell.BioThread nns.BioSensor devs.speechpackage.SpeechRecognizer
public class SpeechRecognizer
A demonstration of how to use JSGF grammars in sphinx-4. This program demonstrates how an application can cycle through a number of JSGF grammars as well as how an application can build up grammar rules directly
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class nns.BioSensor |
---|
EXTERO_SENSOR, INTERO_SENSOR, PROPRIO_SENSOR |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface biocell.BioDevice |
---|
BLOCKED, BUSY, CYCLING, DONE, END, PAUSED, RESUMED, START, WAIT |
Constructor Summary | |
---|---|
SpeechRecognizer(BioSensorListener listener)
|
Method Summary | |
---|---|
void |
addListener(BioDeviceListener rP)
|
void |
execute()
Executes the demo. |
int |
getCurrentPosition()
|
int |
getCurrentState()
|
void |
initAll()
Creates a new JSGFDemo. |
void |
load(MNSEvent cnE)
simple interface to control all Devices |
void |
loadCNTR(MNSEvent cnE)
|
void |
process(MNSEvent cnv)
loads a CNSEvent into a listener |
void |
run()
|
Methods inherited from class nns.BioSensor |
---|
addListener, addSensorListener, geState, getControls, getListener, getname, getType, seState, setListener, setname, setType |
Methods inherited from class biocell.BioThread |
---|
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpeechRecognizer(BioSensorListener listener)
Method Detail |
---|
public void addListener(BioDeviceListener rP)
addListener
in interface BioDevice
addListener
in class BioSensor
public int getCurrentPosition()
getCurrentPosition
in interface BioDevice
getCurrentPosition
in class BioSensor
public int getCurrentState()
getCurrentState
in interface BioDevice
getCurrentState
in class BioSensor
public void load(MNSEvent cnE)
BioDevice
load
in interface BioDevice
load
in class BioSensor
public void loadCNTR(MNSEvent cnE)
loadCNTR
in interface BioDevice
loadCNTR
in class BioSensor
public void process(MNSEvent cnv)
MNSListener
process
in interface MNSListener
process
in class BioSensor
public void initAll() throws java.io.IOException, edu.cmu.sphinx.util.props.PropertyException, java.lang.InstantiationException
java.io.IOException
- if an I/O error occurs
edu.cmu.sphinx.util.props.PropertyException
- if a property configuration occurs
java.lang.InstantiationException
- if a problem occurs while
creating any of the recognizer components.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void execute() throws java.io.IOException, javax.speech.recognition.GrammarException
java.io.IOException
javax.speech.recognition.GrammarException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |