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

cordova android 5.1.1 crosswalk annyang not listening #352

Open
Alexandre17220 opened this issue Jul 6, 2018 · 1 comment
Open

cordova android 5.1.1 crosswalk annyang not listening #352

Alexandre17220 opened this issue Jul 6, 2018 · 1 comment

Comments

@Alexandre17220
Copy link

Alexandre17220 commented Jul 6, 2018

Hi all,

I have make a new project with last version cordova (actually 8.0.0.0), I have add
plugins :
cordova plugin add cordova-plugin-crosswalk-webview
cordova plugin add cordova-plugin-media

I have add the platform android 5.1.1
I have verified permission in AndroidManifest.xml :
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" />

I have enable debug mode in annyang, when I launch my application with usb debugging, I see crosswalk is loaded (in console navigator.userAgent) :
"Mozilla/5.0 (Linux; Android 8.0; MI 5 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Crosswalk/21.51.546.7 Mobile Safari/537.36"
But the speechrecognizion don't work..nothing append when I talk.
If I try on my desktop all are ok..
I have tried to add a plugins speech reconizion for force authorization.. the in board application recognizion work, but not the annyang.

There is a way to get more debug log?

Thanks a lot,

@Alexandre17220
Copy link
Author

Alexandre17220 commented Jul 6, 2018

I add log and the function annyang.isListening() return false
..
I have test too with the last version of android in a new project
cordova platform add android
same thing, no listening
`var commands = {
'suivant': function() {
alert("Suivant");
},
'précédent': function() {
alert("précédent");
}
};
annyang.debug();
annyang.setLanguage('fr-FR');
// Add our commands to annyang
annyang.addCommands(commands);

//annyang.debug(true);

// Start listening. You can call this here, or attach this call to an event, button, etc.
annyang.start({ autoRestart: true, continuous: true });

//annyang.debug(true);
if (!annyang) {
console.log("Speech Recognition is not supported");
} else {
console.log("Speech Recognition ok");
}

if (annyang.isListening()) {
console.log("isListening");
} else {
console.log("NOT Listening");
annyang.init(commands, true);
}

if (annyang.isListening()) {
console.log("isListening");
} else {
console.log("NOT Listening");

}`

@Alexandre17220 Alexandre17220 changed the title cordova android 5.1.1 crosswalk annyang don't listen cordova android 5.1.1 crosswalk annyang not listening Jul 6, 2018
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