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.
//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();