Speech Recognition Based on iOS iOS Browser

I am trying to implement speech recognition on Chrome on an iPad without any luck. Just to interrupt the chase and remove any dependencies on my implementation of webkitSpeechRecognition api, an excellent code sample does not work on Chrome v27 on iPad 1 running iOS 5.1.1 or Chrome v31 on iPad3 running iOS 7.0.4, at least as far as I can judge. It does not work on this line:

if (!('webkitSpeechRecognition' in window)) { r.onState('upgrade'); return; } 

I can't figure out a workaround, and I have not seen any online messages that say anything about speech recognition that do not work in the iOS version of Chrome. Anyone else run into this?

+6
google-chrome ios speech-recognition
source share
2 answers

Chrome on iOS does not currently support speech recognition.

Google should use iOS UIWebView, which means there is no special web interpretation feature that is not supported in Safari.

You can take a look at this link .

+9
source share

If you want to recognize some simple commands, you can look at Pocketsphinx.js

The speech recognition code is simple:

 var id = 0; recognizer.postMessage({command: 'initialize', callbackId: id}); var keyphrase = "HELLO WORLD"; recognizer.postMessage({command: 'addKeyword', data: keyphrase, callbackId: id}); recognizer.postMessage({command: 'start', data: id}); recognizer.postMessage({command: 'process', data: array}); recognizer.postMessage({command: 'stop'}); recognizer.onmessage = function(e) { if (e.data.hasOwnProperty('hyp')) { alert(e.data.hyp); } }; 

For more details, see also the full example here.

+1
source share

All Articles