Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/223.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
识别语音在使用dialogflow集成的android中无法正确识别用户的话语_Android_Android Intent_Sdk_Integration_Dialogflow Es - Fatal编程技术网

识别语音在使用dialogflow集成的android中无法正确识别用户的话语

识别语音在使用dialogflow集成的android中无法正确识别用户的话语,android,android-intent,sdk,integration,dialogflow-es,Android,Android Intent,Sdk,Integration,Dialogflow Es,我在与android自定义应用程序实现dialogflow集成时遇到了一个问题。有时,识别引擎能够正确识别用户的话语,但大多数时候却不能。那么,我们如何改进识别引擎,使其能够更准确地理解用户的话语呢。 我使用android dialogflow sdk与以下git存储库集成:- 但是这个链接并不能解决我的问题 我发现的另一个解决方案是,我们可以使用android Intent的谷歌提示,它有更好的识别引擎。 以下是android Intent的代码,它生成了一个类似这样的弹出窗口,它可以更恰当

我在与android自定义应用程序实现dialogflow集成时遇到了一个问题。有时,识别引擎能够正确识别用户的话语,但大多数时候却不能。那么,我们如何改进识别引擎,使其能够更准确地理解用户的话语呢。 我使用android dialogflow sdk与以下git存储库集成:-

但是这个链接并不能解决我的问题

我发现的另一个解决方案是,我们可以使用android Intent的谷歌提示,它有更好的识别引擎。 以下是android Intent的代码,它生成了一个类似这样的弹出窗口,它可以更恰当地识别用户的话语:-

但问题是,我们如何将android intent与AI服务集成,以使用dialogflow,从而配置AI服务,如语言支持、识别引擎类型和dialogflow的访问令牌


有人能帮我解决这个问题吗?

有人能帮我解决这个问题吗?
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Say hi or hello");
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
                    RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);
startActivity(intent);