Open ran-j opened 7 years ago
This code is not valid. Use a syntax checker like eslint
On 3 Apr 2017 22:40, "Ranieri" notifications@github.com wrote:
Im using this plugin on cordova. I have this code:
` document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { alert("pronto");
window.plugins.speechRecognition.hasPermission(Function successCallback2, Function errorCallback)
}
function successCallback(){ alert("foi"); } function errorCallback(){ alert("deu erro"); }
function successCallback2(){ alert("tem permissao"); let options = { String "pt-BR", Number 5, String "rola viado", // Android only Boolean true } window.plugins.speechRecognition.startListening(Function successCallback, Function errorCallback, Object options) } `
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pbakondy/cordova-plugin-speechrecognition/issues/30, or mute the thread https://github.com/notifications/unsubscribe-auth/AAej2ffMd1vg3qtQawZUmDz-q6RLZEEGks5rsVlPgaJpZM4MyEIG .
Can you give me a example How I do this core work ?
On 3 Apr 2017 23:12, "Ranieri" notifications@github.com wrote:
Can you give me a example How I do this core work ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pbakondy/cordova-plugin-speechrecognition/issues/30#issuecomment-291275410, or mute the thread https://github.com/notifications/unsubscribe-auth/AAej2VaFAR1awdnAENzJtVg99AGyAWCBks5rsWCngaJpZM4MyEIG .
Hi @ran-j PFB example which you can use. It is working fine for me.
window.plugins.speechRecognition.startListening(function(result){
// Show results in the console
alert('alert result : '+result[0]);
}, function(err){
alert('error response : '+err);
}, { language: "en-US", matches : 1, showPopup: false, showPartial: false
});
Im using this plugin on cordova. I have this code:
document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { alert("pronto");
}
function successCallback(){ alert("foi"); } function errorCallback(){ alert("deu erro"); }
function successCallback2(){ alert("tem permissao"); let options = { String "pt-BR", Number 5, String "rola viado", // Android only Boolean true } window.plugins.speechRecognition.startListening(Function successCallback, Function errorCallback, Object options) }
Im using Android 7.1