Annyang! javascript

#1

Hi,

Has anyone tried to use annyang ? i’ve tried but doesn’t seem to work, or maybe it’s just that i did it wrongly.
So, if you have tried maybe you can show me some example on how to use this on ionic ?

#2

It may be a permissions issue,
Can you share the code you have so far?

#3

Yes when i tried on browser, it asked for permission but since i don’t where the mic is and i dont have an external mic so i tried it on device.

<script src="js/annyang.min.js"></script>
<script src="js/annyang.js"></script>

Here is the code

$scope.name = null;
$scope.onHold = function(){
             var commands = {
               'my name is *var': function(var) {
                      $scope.name = var;
                }
             };
         annyang.addCommands(commands);
         annyang.start();
 }

I just followed example from annyang website. basically what i want to do is when i push a button, then speak and then put the result on a scope.

can you also take a look at my problem here ?

http://forum.ionicframework.com/t/cordova-media-plugin/16975

i’m creating a language learning app, i want user to be able to hear and the speak the sentences.
Or maybe you could suggest me some alternatives ?

#4

http://www.excellentwebworld.com/android-speechrecognizer-plugin-phonegap-3-0/

try the plugin which uses HTML 5 interface. I used it on one of my cordova app, and works charm.

#5

can you share another, this link not found…