...
Finally, we need to register a callback function to act whenever Dialogflow output is available. Whenever Dialogflow detects a new word, we will receive a RecognitionResult
message. TheThen, on_dialog
function simply prints the detected speech when it’s considered final
.
...