Speech Recognition is a native extension that takes advantage of the Android’s speech recognition APIs. It provides methods to check if the feature is supported and to launch the default speech recognition UI and capture voice input.

It trigger events based on the success or failure of the speech recognition. In case of success, the appropriate event has information of the best match. In case of failure, the appropriate event is fired.

Sample

//Creating and initializing a Speech Object
//Parameter - Prompt displayed on the Native Speech Recognition UI
var speech:Speech = new Speech("Please speak something !");
// Returns a Boolean value
trace("Speech Supported: " + speech.isSupported);
//Calls the method which in turn fire's the Native Speech UI for accepting speech input
speech.listen();
Air Native Extension, Android. URL.