javascript - Will Web Speech API work in Cordova/Phonegap app? -


will web speech api work in cordova/phonegap based app ? i'm interested if work on android.

you can use plugin: https://github.com/apache/cordova-plugin-media

there exists whole step step use it

example:

// audio player // var my_media = new media(src, onsuccess, onerror);  // update media position every second var mediatimer = setinterval(function () {     // media position     my_media.getcurrentposition(         // success callback         function (position) {             if (position > -1) {                 console.log((position) + " sec");             }         },         // error callback         function (e) {             console.log("error getting pos=" + e);         }     ); }, 1000); 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -