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:
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
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: 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