A
Android Central Question
I am facing an issue while implementing dialogflow integration with android custom app. Sometimes recognition engine identifies user utterances properly and most of the time it's doesn't. So how can we improve the recognition engine so it can understand user utterances more accurately. I have used android dialogflow sdk for integration but this link doesn't solve my issue.
One more solution i found is that we can use google's prompt using android Intent which has better recognition engine. here is the code for android Intent which generates a pop-up and it recognise user utterance more appropriate.
below is the code for google's prompt:-
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);
But the issue is how can we integrate android intent with AI Services to use dialogflow so that we can configure AI Services like Language support, Recognition engine type and access token of dialogflow
Can anyone help me on this please?
One more solution i found is that we can use google's prompt using android Intent which has better recognition engine. here is the code for android Intent which generates a pop-up and it recognise user utterance more appropriate.
below is the code for google's prompt:-
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);
But the issue is how can we integrate android intent with AI Services to use dialogflow so that we can configure AI Services like Language support, Recognition engine type and access token of dialogflow
Can anyone help me on this please?