简体   繁体   中英

PhoneGap Android Speech Recognition

I'm trying to translate this script https://github.com/GoogleChrome/webplatform-samples/tree/master/webspeechdemo into a android app based on Apache Cordova.

The problem is the script works only on Google Chrome browser and when I test it on my Android Phone it doesnt do much. Is there a way to emulate Google Chrome when my app starts ?

Thanks

There is a speech recognition plugin for cordova: http://github.com/macdonst/SpeechRecognitionPlugin

And here is the talk the author gave at Phonegap Day US: http://simonmacdonald.blogspot.it/2013/10/my-phonegap-day-us-talk-on-speech.html

I haven't actually tried this plugin but looking at the video it seems good.

Hope this helps!

Another quick & easy alternative to add Speech Recognition into your Cordova app, is to use ng-speech-recognition directive:

ng-speech-directive for AngularJS compatible Cordova

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM