Skip to content

Roadmap

Andrey edited this page Feb 12, 2018 · 5 revisions

Speech recognition

https://stackoverflow.com/questions/4734030/voice-to-text-on-android-in-offline-mode

// Check to see if a recognition activity is present PackageManager pm = getPackageManager(); List<ResolveInfo> activities = pm.queryIntentActivities( new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0); if (activities.size() != 0) { speakButton.setOnClickListener(this); } else { speakButton.setEnabled(false); speakButton.setText(R.string.recognizer_not_present); }

https://developer.android.com/reference/android/speech/RecognizerIntent.html

Clone this wiki locally