Developing applications with the Google speech recognition API
The components of the Google speech API (package android.speech
) are documented at http://developer.android.com/reference/android/speech/package-summary.html. Interfaces and classes are listed here and further details can be obtained by clicking on them.
There are two ways in which speech recognition can be carried out on an Android device: based solely on a RecognizerIntent
approach, or by creating an instance of SpeechRecognizer
. The former provides an easy-to-program mechanism with which it is possible to create apps that use speech recognition by starting the Intent class and processing its results. The apps following this scheme will present a dialog providing feedback to the user on whether the ASR is ready, or about different errors during the recognition process. Using SpeechRecognizer
provides developers with different notifications of recognition-related events, thus allowing a more fine-grained processing of the speech...