Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

İOS-10 not working #99

Open
HasannSola opened this issue Aug 15, 2017 · 0 comments
Open

İOS-10 not working #99

HasannSola opened this issue Aug 15, 2017 · 0 comments

Comments

@HasannSola
Copy link

HasannSola commented Aug 15, 2017

I add the plugin and build for ios platform. Not working. please help for this.
firmware: IOS 10.3.3
ionic version: v1
the following used to code:----------------------------------------------------
in html code: Click to Speak
in angularjs controller code:

angular.module('starter.controllers', [])
.controller('testCtrl', function($scope,$timeout) {
var recognition = new SpeechRecognition();
recognition.maxAlternatives = 10;
$scope.start=function() {
recognition.start();
$timeout(function(){
recognition.onresult = function(event) {
if (event.results.length > 0) {
var result = event.results[0];
console.log(result);
for (var i = 0; i < result.length; ++i) {
var text = result[i].transcript;
alert(text);
}
}
}
},6000);
}
});

the following error occurred;--------------------------------

2017-08-15 13:45:12.902227+0300 speech[1164:245124] THREAD WARNING: ['SpeechRecognition'] took '124.562012' ms. Plugin should use a background thread.
2017-08-15 13:45:12.902895+0300 speech[1164:245124] error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant