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, setService
public ALDialog(Session session) throws java.lang.Exception
java.lang.Exception
public java.lang.Boolean isStatsEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void clearStats() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isTraceEnabled() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void exit() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String version() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean ping() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getMethodList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Object getMethodHelp(java.lang.String methodName) throws CallError, java.lang.InterruptedException
methodName
- The name of the method.CallError
java.lang.InterruptedException
public java.lang.Object getModuleHelp() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public 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.CallError
java.lang.InterruptedException
public 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'CallError
java.lang.InterruptedException
public void stop(java.lang.Integer id) throws CallError, java.lang.InterruptedException
id
- the ID of the method to wait forCallError
java.lang.InterruptedException
public java.lang.String getBrokerName() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String getUsage(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- The name of the method.CallError
java.lang.InterruptedException
public 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.CallError
java.lang.InterruptedException
public void subscribe(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- Name of the module which subscribes.CallError
java.lang.InterruptedException
public void unsubscribe(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- Name of the module which had subscribed.CallError
java.lang.InterruptedException
public 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).CallError
java.lang.InterruptedException
public 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.CallError
java.lang.InterruptedException
public java.lang.Integer getCurrentPeriod() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Float getCurrentPrecision() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Integer getMyPeriod(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- Name of the module which has subscribed.CallError
java.lang.InterruptedException
public java.lang.Float getMyPrecision(java.lang.String name) throws CallError, java.lang.InterruptedException
name
- name of the module which has subscribedCallError
java.lang.InterruptedException
public java.lang.Object getSubscribersInfo() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getOutputNames() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getEventList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getMemoryKeyList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void wordRecognized(java.lang.String param1, java.lang.Object param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void addBlockingEvent(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void wordsRecognizedCallback(java.lang.Object param1, java.lang.Integer param2) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean endOfUtteranceCallback() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void releaseEngine() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> controlEngine(java.lang.String param1, java.lang.String param2) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void eventReceived(java.lang.String param1, java.lang.Object param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void statusChanged(java.lang.String param1, java.lang.Object param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void gotoTag(java.lang.String param1, java.lang.String param2) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void noPick(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void connectionChanged(java.lang.String param1, java.lang.Object param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void compileAll() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String loadTopic(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void deactivateTopic(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void activateTopic(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void unloadTopic(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void forceOutput() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void forceInput(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void tell(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setASRConfidenceThreshold(java.lang.Float param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Float getASRConfidenceThreshold() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void openSession(java.lang.Integer param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void closeSession() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setDelay(java.lang.String param1, java.lang.Integer param2) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setNumberOfScopes(java.lang.Integer param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public 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 conceptCallError
java.lang.InterruptedException
public 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 databaseCallError
java.lang.InterruptedException
public void setConceptKeepInCache(java.lang.String param1, java.lang.String param2, java.util.List<java.lang.String> param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setPushMode(java.lang.Integer param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void enableTriggerSentences(java.lang.Boolean param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void enableCategory(java.lang.Boolean param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void startPush() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void stopPush() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setAnimatedSpeechConfiguration(java.lang.Object param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void applicationBlackList(java.util.List<java.lang.String> param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isContentNeedsUpdate() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void runDialog() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void stopDialog() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setVariablePath(java.lang.String param1, java.lang.String param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setLanguage(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void startUpdate(java.lang.String param1, java.lang.Object param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void startApp(java.lang.String param1, java.lang.Object param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void packageInstalled(java.lang.String param1, java.lang.Object param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void compilationFinished(java.lang.String param1, java.lang.Object param2, java.lang.String param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void setFocus(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String getFocus() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void gotoTopic(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getLoadedTopics(java.lang.String param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getAllLoadedTopics() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getActivatedTopics() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void activateTag(java.lang.String param1, java.lang.String param2) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void deactivateTag(java.lang.String param1, java.lang.String param2) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void resetAll() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void insertUserData(java.lang.String param1, java.lang.String param2, java.lang.Integer param3) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.String getUserData(java.lang.String param1, java.lang.Integer param2) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.String> getUserDataList(java.lang.Integer param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.util.List<java.lang.Integer> getUserList() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void removeUserData(java.lang.Integer param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void clearConcepts() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void enableSendingLogToCloud(java.lang.Boolean param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public java.lang.Boolean isSendingLogToCloud() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void enableLogAudio(java.lang.Boolean param1) throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
public void deleteSerializationFiles() throws CallError, java.lang.InterruptedException
CallError
java.lang.InterruptedException
Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.