I made a threshold change box of Pepper's Dialog

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.

Introduction

――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.)

Set Dialog CT Box

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.

Screen Shot 2016-07-27 at 20.44.59.png

Specific usage

The created Box is a Box called Set Dialog CT. Let's take a look at this Box.

Screen Shot 2016-07-27 at 20.45.27.png

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%.

Screen Shot 2016-07-27 at 22.01.06.png

Convenient because you only have to place it in front of the Dialog Box!

The contents of the 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.

in conclusion

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

I made a threshold change box of Pepper's Dialog
〇✕ I made a game
I made a python text
I made a discord bot
I made a function to check the model of DCGAN
I made a dot picture of the image of Irasutoya. (part1)
I made a dot picture of the image of Irasutoya. (part2)
I made a C ++ learning site
I made a Line-bot using Python!
I made a CUI-based translation script (2)
I made a fortune with Python.
I made a lot of files for RDP connection with Python
I made a CUI-based translation script
I made a slack bot that notifies me of the temperature
I made a subtitle file (SRT) from JSON data of AmiVoice
I made a daemon with Python
[Kaggle] I made a collection of questions using the Titanic tutorial
I made a calendar that automatically updates the distribution schedule of Vtuber
I made a note of Google colaboratory which can use Spleeter easily.
I made a kind of simple image processing tool in Go language.
I made a GAN with Keras, so I made a video of the learning process.
I made a program to check the size of a file in Python
I made a mistake in fetching the hierarchy with MultiIndex of pandas
I made a function to see the movement of a two-dimensional array (Python)
I made a new AWS S3 bucket
I made a dash docset for Holoviews
I made a payroll program in Python!
I touched "Orator" so I made a note
I made a character counter with Python
Beginner: I made a launcher using dictionary
Change processing by user input of dialog
I made a conversation partner like Siri
I made a script to display emoji
I made a Hex map with Python
I made a life game with Numpy
I took a benchmark of h5py compression
I made a stamp generator with GAN
I made a browser automatic stamping tool.
After studying Python3, I made a Slackbot
I made a roguelike game with Python
I tried 3D detection of a car
I made a simple blackjack with Python
I made a configuration file with Python
I made a library for actuarial science
I made a WEB application with Django
I made a neuron simulator with Python
I made a tool to estimate the execution time of cron (+ PyPI debut)
I made a tool to notify Slack of Connpass events and made it Terraform
I made an appdo command to execute a command in the context of the app
I made a SlackBot that notifies me of AtCoder contest information every week
I made a Linebot that notifies me of nearby evacuation sites on AWS
I made a tool to automatically back up the metadata of the Salesforce organization
I made a script to record the active window using win32gui of Python
I made a github action that notifies Slack of the visual regression test
I made a stamp substitute bot with line
I made a python dictionary file for Neocomplete
I made a weather forecast bot-like with Python.
I made a spare2 cheaper algorithm for uWSGI
I made a useful tool for Digital Ocean
I made a GUI application with Python + PyQt5
I made a Twitter fujoshi blocker with Python ①