|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectsimpleSpeech.Listen
public class Listen
Listen: a Class for speech recognition (using the Sphinx engine
Constructor Summary | |
---|---|
Listen(processing.core.PApplet _p,
java.lang.String _c)
Constructor: instantiate the class in procesing's standard way: pass "this" as a parameter, when instantiating in a Processing applet |
Method Summary | |
---|---|
void |
dispose()
Dispose the Recognizer |
boolean |
isRecording()
Is the Microphone recording? |
void |
makeEvent()
Create the Listen Event |
java.lang.String |
readString()
Returns a string with the recognised text It should be called within the listenEvent() handler
void listenEvent(Listen _l) {
|
void |
run()
Run the Recognizer |
void |
version()
Displays Version Information Of This Library In The Console |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Listen(processing.core.PApplet _p, java.lang.String _c)
_p
- Processing applet_c
- name of the configuration file (e.g. sample.config.xml)Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public java.lang.String readString()
void listenEvent(Listen _l) {
// GET RECOGNISED TEXT
stringRead = _l.readString();
}
public void makeEvent()
public boolean isRecording()
public void version()
public void dispose()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |