Following is my code for voice recognition, its saying "Recogniser not present" for latest devices and tablets.Please help me how to fix it.
public void startMyVoice()
{
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, sayClose);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US");
try
{
startActivityForResult(intent, RESULT_SPEECH);
}
catch (ActivityNotFoundException a)
{
Toast.makeText(getApplicationContext(), "Recogniser not present", Toast.LENGTH_SHORT).show();
}
}