How to use new Dialogflow SDK V2 in Android

扶醉桌前 提交于 2019-12-05 02:34:53

问题


I'm a bit confused about the migration to Dialogflow V2: I have an Android app using https://github.com/dialogflow/dialogflow-android-client (1) that makes voice recognition via "AIService" and request to my Dialogflow Agent V1.

Now with the release of Dialogflow V2, the docs point me to use: https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-dialogflow

But I can not see correspondence to AIService in this new SDK for Java... all I've found is this: https://googlecloudplatform.github.io/google-cloud-java/latest/apidocs/index.html?com/google/cloud/dialogflow/v2/package-summary.html

My question is: Does actual dialogflow Android client (1) works with V2 Agents? If the answer is "yes", why Google put this in the docs?:

Dialogflow's legacy V1 SDKs can be found below. If you are starting a new project please use Dialogflow's V2 and V2 SDKs listed above, as Dialogflow's V1 API will be turned down on April 10, 2019.

Help will be appreciated, Cheers

来源:https://stackoverflow.com/questions/50039969/how-to-use-new-dialogflow-sdk-v2-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!