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 ?