Project: titanium
Issue TIMOB-23523: iOS10: Support Speech Recognition
iOS 10 exposes APIs to parse the spoken language and return it as a textual output. We can support both local and remote URLs as well as real-time speech-recognition using the microphone. Proposed API: {code:javascript} var Speech = require("ti.speech"); var speechRecognizer = Speech.createSpeechRecognizer({ type: Speech.RECOGNITION_TYPE_URL, locale: "en_US" }); speechRecognizer.addEventListener("error", function(e) { Ti.API.error("Speech recognition failed: " + e.error); }); speechRecognizer.addEventListener("progress", function(e) { Ti.API.error("New Speech recognition progress: " + e.result); Ti.API.warn("Number of transcriptions: " + e.transcriptions.length); }); speechRecognizer.addEventListener("success", function(e) { Ti.API.error("Speech recognition completed: " + e.result); }); speechRecognizer.parse(); {code}
Story points: 15