Search Posts

Category: annyang

How do I change an AngularJS variable I declared in $scope using annyang speech commands?

I have a simple speech recognition app that starts and pauses a video based on speech commands. My problem is that a variable that I declare in $scope does not change when I give the pause command. The intent is for the number in the textarea to change when I pause the video using the “pause” speech command. Link to fiddle var myApp = angular.module(‘myApp’, [‘vjs.video’]); myApp.controller(“myCtrl”, function MyCtrl($scope) { $scope.playtime = 0; $scope.$on(‘vjsVideoReady’, function(e, […]