Many people asked me, "Can I change the threshold of pepper's Dialog?", So I made it. You don't need to know python, so please refer to the following.
――It is troublesome to make a bother </ b> ssh connection to change the Pepper Dialog threshold. --If you can create a Choregraph Box, you can incorporate it into the app. --You can set a threshold for each Dialog Box (like Speech Reco.)
I made a Box to change the Confidence Threshold of Dialog. Box is available on Github.
If you download it and open .pml, you will see an app configured as follows. If you execute it as it is, you can change the threshold value of Dialog.
The created Box is a Box called Set Dialog CT. Let's take a look at this Box.
First of all, variables, but you've probably seen them somewhere. Yes, that threshold is exactly the same as Speech Reco. By default, it can recognize 40%. If this value is set to 0.5, the threshold can be set to 50%.
Convenient because you only have to place it in front of the Dialog Box!
python
class MyClass(GeneratedClass):
def __init__(self):
GeneratedClass.__init__(self)
def onLoad(self):
try:
self.dialog = ALProxy("ALDialog")
self.value = self.getParameter("Confidence Threshold (%)")
except:
self.logger.warn("ALDialog is not available, language setting cannot be applied to dialog")
self.dialog = None
def onInput_input1(self):
self.dialog.setASRConfidenceThreshold(self.value)
self.logger.info(self.dialog.getASRConfidenceThreshold())
self.output1()
I made it as simple as possible. You can also check the threshold value in Choregraphe's log viewer.
You can easily change the Dialog threshold like this. With this, you don't have to go through the troublesome procedure of connecting with ssh and changing it. Please make use of it.
Recommended Posts