private boolean isVoiceAvailable(){
  PackageManager packageManager=mContext.getPackageManager();
  List<ResolveInfo> activities=packageManager.queryIntentActivities(new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH),0);
  return activities.size() > 0;
}

private boolean isVoiceAvailable ( ) { PackageManager packageManager = mContext . getPackageManager ( ) ; List < ResolveInfo > activities = packageManager . queryIntentActivities ( new Intent ( RecognizerIntent . ACTION_RECOGNIZE_SPEECH ) , 0 ) ; return activities . size ( ) > 0 ; }
determines if the user ' s voice is available
