public interface SpeechRecognizer extends NameProvider
Modifier and Type | Method and Description |
---|---|
void |
addMouth(SpeechSynthesis mouth)
This method should listen for
Mouth events
FIXME - should be deprecated - use Attach Pattern !
|
void |
clearLock()
This will unlock lockOutAllGrammarExcept(lockPhrase)
|
boolean |
isListening()
track the state of listening process
|
void |
listeningEvent(java.lang.Boolean event)
Event is sent when the listening Service is actually listening or not.
|
void |
lockOutAllGrammarExcept(java.lang.String lockPhrase)
The ear service will not listen anymore
until the magical keyword "lockPhrase" said
or clearLock() method called
|
void |
onEndSpeaking(java.lang.String utterance) |
void |
onStartSpeaking(java.lang.String utterance) |
void |
pauseListening()
method to suppress recognition listening events This is important when a
Speech Recognizer is listening --> then Speaking, typically you don't want
the STT to listen to its own speech, it causes a feedback loop and with STT
not really very accurate, it leads to weirdness -- additionally it does not
recreate the speech processor - so its not as heavy handed
|
java.lang.String |
recognized(java.lang.String word) |
void |
resumeListening() |
void |
setAutoListen(boolean autoListen)
If setAutoListen is True, webkitspeech red microphone will auto rearm.
|
void |
startListening() |
void |
stopListening() |
getName
void listeningEvent(java.lang.Boolean event)
void pauseListening()
java.lang.String recognized(java.lang.String word)
void resumeListening()
void startListening()
void stopListening()
void addMouth(SpeechSynthesis mouth)
void onStartSpeaking(java.lang.String utterance)
void onEndSpeaking(java.lang.String utterance)
void lockOutAllGrammarExcept(java.lang.String lockPhrase)
void clearLock()
void setAutoListen(boolean autoListen)
boolean isListening()