public class ALDialog extends ALProxy
| Modifier and Type | Method and Description |
|---|---|
void |
activateTag(java.lang.String param1,
java.lang.String param2)
activate a tag
|
void |
activateTopic(java.lang.String param1)
Activate a topic
|
void |
addBlockingEvent(java.lang.String param1)
Callback when speech recognition recognized a word
|
void |
applicationBlackList(java.util.List<java.lang.String> param1)
Black list a list of application
|
void |
clearConcepts()
clear concepts in DB
|
void |
clearStats() |
void |
closeSession()
Close the session
|
void |
compilationFinished(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
compilationFinished
|
void |
compileAll()
compile all for ASR
|
void |
connectionChanged(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
Callback when remote connection changes
|
java.util.List<java.lang.String> |
controlEngine(java.lang.String param1,
java.lang.String param2)
controlEngine
|
void |
deactivateTag(java.lang.String param1,
java.lang.String param2)
deactivate a tag
|
void |
deactivateTopic(java.lang.String param1)
Activate a topic
|
void |
deleteSerializationFiles()
delete serializations files .ser .ini .bnf .lcf
|
void |
enableCategory(java.lang.Boolean param1)
enableCategory
|
void |
enableLogAudio(java.lang.Boolean param1)
enable sending log audio (recorded conversation) to the cloud
|
void |
enableSendingLogToCloud(java.lang.Boolean param1)
let the robot send log the cloud
|
void |
enableTriggerSentences(java.lang.Boolean param1)
enableTriggerSentences
|
java.lang.Boolean |
endOfUtteranceCallback()
End of utterance callback
|
void |
eventReceived(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
Callback when dialog received a event
|
void |
exit()
Exits and unregisters the module.
|
void |
forceInput(java.lang.String param1)
Give a sentence to the dialog and get the answer
|
void |
forceOutput()
Get a proposal
|
void |
generateSentences(java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
Generate sentences
|
java.util.List<java.lang.String> |
getActivatedTopics()
Get activated topics
|
java.util.List<java.lang.String> |
getAllLoadedTopics()
Load precompiled file
|
java.lang.Float |
getASRConfidenceThreshold()
Get the minimum confidence required to recognize words
|
java.lang.String |
getBrokerName()
Gets the name of the parent broker.
|
java.lang.Integer |
getCurrentPeriod()
Gets the current period.
|
java.lang.Float |
getCurrentPrecision()
Gets the current precision.
|
java.util.List<java.lang.String> |
getEventList()
Get the list of events updated in ALMemory.
|
java.lang.String |
getFocus()
Give focus to a dialog
|
java.util.List<java.lang.String> |
getLoadedTopics(java.lang.String param1)
Load precompiled file
|
java.util.List<java.lang.String> |
getMemoryKeyList()
Get the list of events updated in ALMemory.
|
java.lang.Object |
getMethodHelp(java.lang.String methodName)
Retrieves a method's description.
|
java.util.List<java.lang.String> |
getMethodList()
Retrieves the module's method list.
|
java.lang.Object |
getModuleHelp()
Retrieves the module's description.
|
java.lang.Integer |
getMyPeriod(java.lang.String name)
Gets the period for a specific subscription.
|
java.lang.Float |
getMyPrecision(java.lang.String name)
Gets the precision for a specific subscription.
|
java.util.List<java.lang.String> |
getOutputNames()
Get the list of values updated in ALMemory.
|
java.lang.Object |
getSubscribersInfo()
Gets the parameters given by the module.
|
java.lang.String |
getUsage(java.lang.String name)
Gets the method usage string.
|
java.lang.String |
getUserData(java.lang.String param1,
java.lang.Integer param2)
get user data from dialog database
|
java.util.List<java.lang.String> |
getUserDataList(java.lang.Integer param1)
get user data list from dialog database
|
java.util.List<java.lang.Integer> |
getUserList()
get user list from dialog database
|
void |
gotoTag(java.lang.String param1,
java.lang.String param2)
Callback when ASR status changes
|
void |
gotoTopic(java.lang.String param1)
Set the focus to a topic and make a proposal
|
void |
insertUserData(java.lang.String param1,
java.lang.String param2,
java.lang.Integer param3)
insert user data into dialog database
|
java.lang.Boolean |
isContentNeedsUpdate()
True if new content was installed
|
java.lang.Boolean |
isRunning(java.lang.Integer id)
Returns true if the method is currently running.
|
java.lang.Boolean |
isSendingLogToCloud()
check if the robot is sending the log to the cloud
|
java.lang.Boolean |
isStatsEnabled() |
java.lang.Boolean |
isTraceEnabled() |
java.lang.String |
loadTopic(java.lang.String param1)
Load a topic
|
void |
noPick(java.lang.String param1)
noPick
|
void |
openSession(java.lang.Integer param1)
Open a session
|
void |
packageInstalled(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
packageInstalled
|
java.lang.Boolean |
ping()
Just a ping.
|
void |
releaseEngine()
releaseEngine
|
void |
removeUserData(java.lang.Integer param1)
remove a user from the database
|
void |
resetAll()
fallback
|
void |
runDialog()
run main dialog
|
void |
setAnimatedSpeechConfiguration(java.lang.Object param1)
Set the configuration of animated speech for the current dialog.
|
void |
setASRConfidenceThreshold(java.lang.Float param1)
Set the minimum confidence required to recognize words
|
void |
setConcept(java.lang.String conceptName,
java.lang.String language,
java.util.List<java.lang.String> content)
Set the content of a dynamic concept
|
void |
setConcept(java.lang.String conceptName,
java.lang.String language,
java.util.List<java.lang.String> content,
java.lang.Boolean store)
Set the content of a dynamic concept
|
void |
setConceptKeepInCache(java.lang.String param1,
java.lang.String param2,
java.util.List<java.lang.String> param3)
set the content of a dynamic concept
|
void |
setDelay(java.lang.String param1,
java.lang.Integer param2)
change event's delay
|
void |
setFocus(java.lang.String param1)
Give focus to a dialog
|
void |
setLanguage(java.lang.String param1)
setLanguage
|
void |
setNumberOfScopes(java.lang.Integer param1)
Set how many scopes remains open
|
void |
setPushMode(java.lang.Integer param1)
Set push mode
|
void |
setVariablePath(java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
setVariablePath
|
void |
startApp(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
startUpdate
|
void |
startPush()
Start push mode
|
void |
startUpdate(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
startUpdate
|
void |
statusChanged(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
Callback when ASR status changes
|
void |
stop(java.lang.Integer id)
returns true if the method is currently running
|
void |
stopDialog()
stop main dialog
|
void |
stopPush()
Stop push mode
|
void |
subscribe(java.lang.String name)
Subscribes to the extractor.
|
void |
subscribe(java.lang.String name,
java.lang.Integer period,
java.lang.Float precision)
Subscribes to the extractor.
|
void |
tell(java.lang.String param1)
Give a sentence to the dialog and get the answer
|
void |
unloadTopic(java.lang.String param1)
unload a dialog
|
void |
unsubscribe(java.lang.String name)
Unsubscribes from the extractor.
|
void |
updatePeriod(java.lang.String name,
java.lang.Integer period)
Updates the period if relevant.
|
void |
updatePrecision(java.lang.String name,
java.lang.Float precision)
Updates the precision if relevant.
|
java.lang.String |
version()
Returns the version of the module.
|
java.lang.Boolean |
wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
Wait for the end of a long running method that was called using 'post'
|
void |
wordRecognized(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
Callback when speech recognition recognized a word
|
void |
wordsRecognizedCallback(java.lang.Object param1,
java.lang.Integer param2)
Get loaded dialog list
|
call, connect, connect, disconnect, getNaoqiType, getService, isProxyReady, setServicepublic ALDialog(Session session) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Boolean isStatsEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void clearStats()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isTraceEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void exit()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String version()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean ping()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getMethodList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getMethodHelp(java.lang.String methodName)
throws CallError,
java.lang.InterruptedException
methodName - The name of the method.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getModuleHelp()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
throws CallError,
java.lang.InterruptedException
id - The ID of the method that was returned when calling the method using 'post'timeoutPeriod - The timeout period in ms. To wait indefinately, use a timeoutPeriod of zero.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isRunning(java.lang.Integer id)
throws CallError,
java.lang.InterruptedException
id - The ID of the method that was returned when calling the method using 'post'CallErrorjava.lang.InterruptedExceptionpublic void stop(java.lang.Integer id)
throws CallError,
java.lang.InterruptedException
id - the ID of the method to wait forCallErrorjava.lang.InterruptedExceptionpublic java.lang.String getBrokerName()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String getUsage(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - The name of the method.CallErrorjava.lang.InterruptedExceptionpublic void subscribe(java.lang.String name,
java.lang.Integer period,
java.lang.Float precision)
throws CallError,
java.lang.InterruptedException
name - Name of the module which subscribes.period - Refresh period (in milliseconds) if relevant.precision - Precision of the extractor if relevant.CallErrorjava.lang.InterruptedExceptionpublic void subscribe(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which subscribes.CallErrorjava.lang.InterruptedExceptionpublic void unsubscribe(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which had subscribed.CallErrorjava.lang.InterruptedExceptionpublic void updatePeriod(java.lang.String name,
java.lang.Integer period)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.period - Refresh period (in milliseconds).CallErrorjava.lang.InterruptedExceptionpublic void updatePrecision(java.lang.String name,
java.lang.Float precision)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.precision - Precision of the extractor.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getCurrentPeriod()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getCurrentPrecision()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getMyPeriod(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getMyPrecision(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - name of the module which has subscribedCallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getSubscribersInfo()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getOutputNames()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getEventList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getMemoryKeyList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void wordRecognized(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void addBlockingEvent(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void wordsRecognizedCallback(java.lang.Object param1,
java.lang.Integer param2)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean endOfUtteranceCallback()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void releaseEngine()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> controlEngine(java.lang.String param1,
java.lang.String param2)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void eventReceived(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void statusChanged(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void gotoTag(java.lang.String param1,
java.lang.String param2)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void noPick(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void connectionChanged(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void compileAll()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String loadTopic(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void deactivateTopic(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void activateTopic(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void unloadTopic(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void forceOutput()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void forceInput(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void tell(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setASRConfidenceThreshold(java.lang.Float param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getASRConfidenceThreshold()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void openSession(java.lang.Integer param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void closeSession()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setDelay(java.lang.String param1,
java.lang.Integer param2)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setNumberOfScopes(java.lang.Integer param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setConcept(java.lang.String conceptName,
java.lang.String language,
java.util.List<java.lang.String> content)
throws CallError,
java.lang.InterruptedException
conceptName - Name of the conceptlanguage - Language of the conceptcontent - content of the conceptCallErrorjava.lang.InterruptedExceptionpublic void setConcept(java.lang.String conceptName,
java.lang.String language,
java.util.List<java.lang.String> content,
java.lang.Boolean store)
throws CallError,
java.lang.InterruptedException
conceptName - Name of the conceptlanguage - Language of the conceptcontent - content of the conceptstore - determine if the concept will be save in the databaseCallErrorjava.lang.InterruptedExceptionpublic void setConceptKeepInCache(java.lang.String param1,
java.lang.String param2,
java.util.List<java.lang.String> param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setPushMode(java.lang.Integer param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void enableTriggerSentences(java.lang.Boolean param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void enableCategory(java.lang.Boolean param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void startPush()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void stopPush()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setAnimatedSpeechConfiguration(java.lang.Object param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void applicationBlackList(java.util.List<java.lang.String> param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isContentNeedsUpdate()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void runDialog()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void stopDialog()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setVariablePath(java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setLanguage(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void startUpdate(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void startApp(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void packageInstalled(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void compilationFinished(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setFocus(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String getFocus()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void gotoTopic(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getLoadedTopics(java.lang.String param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getAllLoadedTopics()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getActivatedTopics()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void activateTag(java.lang.String param1,
java.lang.String param2)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void deactivateTag(java.lang.String param1,
java.lang.String param2)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void resetAll()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void insertUserData(java.lang.String param1,
java.lang.String param2,
java.lang.Integer param3)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String getUserData(java.lang.String param1,
java.lang.Integer param2)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getUserDataList(java.lang.Integer param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.Integer> getUserList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void removeUserData(java.lang.Integer param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void clearConcepts()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void enableSendingLogToCloud(java.lang.Boolean param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isSendingLogToCloud()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void enableLogAudio(java.lang.Boolean param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void deleteSerializationFiles()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.