DialogFlow with Android

Tags: , ,



I’m making an app with Android Studio (Java) and Dialogflow V2. I want to speak with the app and the message I said goes to Dialogflow and it answers me. The thing is that all I can find is that the user types the message and it is sent to Dialogflow.

Does someone know how to do it? How to convert the speak to message in the DialogFlow V2?

Answer

Step 1: First of all, convert your users’ text from a speech by RecognizerIntent. This tutorial will be helpful for this.

Step 2: Then do your rest of the tasks for DialogFlow with the text getting from the speech.



Source: stackoverflow