Comments (22)
code=216 -> in my case it was because I initialized the SFSpeechRecognizer without locale. So, the code that worked is:
private SFSpeechRecognizer SpeechRecognizer = new SFSpeechRecognizer(new NSLocale("en_US"));
from cordova-plugin-speechrecognition.
You have to run on a device.
The iOS simulator does not have access to your Mac’s microphone.
from cordova-plugin-speechrecognition.
when i run on device it give me this error(error domain=kAFAssitantErrorDomainCode=216"(null)")
from cordova-plugin-speechrecognition.
Did you request permission?
What is your environment? cordova, xcode, ios version?
from cordova-plugin-speechrecognition.
yes i have already given these permission (NSMicrophoneUsageDescription permission &
NSSpeechRecognitionUsageDescription permission) with its string value in info.plist.
My cordova version:6.3.1
xcode:Version 8.0 (8A218a)
IOS:OS X EI Capitan..10.11.6 (15G1004)
from cordova-plugin-speechrecognition.
You have to call requestPermission() to get those permissions, info.plist only is not enough.
from cordova-plugin-speechrecognition.
I've already implemented requestPermission() method as shown in below code-
window.plugins.speechRecognition.requestPermission(function(requestpermissionResult){
console.log("Stop message: " + requestpermissionResult);
alert("requestPermission::"+requestpermissionResult);
}, function(requestpermissionErrorMessage){
console.log("Error message: " + requestpermissionErrorMessage);
alert("Error message :requestPermissionError::"+requestpermissionErrorMessage);
});
Is this enough or should I have to implement in other way ??
from cordova-plugin-speechrecognition.
You should call it before using startListening().
You should see a popup window of permission request.
from cordova-plugin-speechrecognition.
We are calling it before startListening(). We are getting Popup asking for permission also. After clicking on ok, it goes to startListening method and we get the error domain=kAFAssitantErrorDomainCode=216"(null)").
from cordova-plugin-speechrecognition.
Where do you see this error?
Does it come with the error callback of startListening() ?
What is the iOS version of your phone?
from cordova-plugin-speechrecognition.
Yes i am running on actual device with ios version 10.0.2(14A456)and that error comes in error callback alert of startListening() method.
from cordova-plugin-speechrecognition.
I could not found any solution yet.
I don't know what this error code means.
The Apple docs does not list this error.
This forum topic is about the same issue without resolve:
https://forums.developer.apple.com/thread/51938
Please try reinstall cordova and Xcode.
from cordova-plugin-speechrecognition.
We tried reinstalling as well but did not work.
from cordova-plugin-speechrecognition.
Please try with latest XCode 8.1 and iOS 10.1
from cordova-plugin-speechrecognition.
Have updated to ios version:10.1 (14B72) and xcode version:Version 8.1 (8B62) still same issue persist.
from cordova-plugin-speechrecognition.
I have same problem, someone have a solution?
Functions
Avaliable - works
HasPermition - works
RequestPermition - works
But startListening - not work
I am with:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.2
Xcode version: Xcode 8.2.1 Build version 8C1002
I need help.
from cordova-plugin-speechrecognition.
you can send me your project that works on your computer to iOS?
I can test here...
from cordova-plugin-speechrecognition.
Please check last release
from cordova-plugin-speechrecognition.
@pbakondy does the latest release solve the problem? I have the same problem on the device itself. everything is using the latest version (device, itunes, xcode)
from cordova-plugin-speechrecognition.
Yes it does
from cordova-plugin-speechrecognition.
I have the versión cordova-plugin-speechrecognition 1.1.2 "Speech Recognition"
and I have this problem
cordova 7.0.0
Iphone 6s IOS 10.3.1
Ipad pro IOS 10.0.2
Xcode Version 8.3.2 (8E2002)
I start seeing the problem when I call te startListening method very often like I push the button 3 times in a short period of time ...
"Error Domain=kAFAssistantErrorDomain Code=209 \"(null)\""
from cordova-plugin-speechrecognition.
I solved the problem i describe above, the problem is caused because I call the method startListening before the last called returns, so, I used a flag to prevent to call startListening if the last call didn't returned yet. However there still a problem, when I call multiple times the startListening the plugin returns
"Error Domain=kAFAssistantErrorDomain Code=203 \"Corrupt\" UserInfo={NSLocalizedDescription=Corrupt, NSUnderlyingError=0x1704506e0 {Error Domain=SiriSpeechErrorDomain Code=102 \"(null)\"}}"
This error doesn't cause a plugin crash like the previous one, after this error occur the plugin is able to listen again
from cordova-plugin-speechrecognition.
Related Issues (20)
- Not working on iOS 13.2 HOT 8
- How to voice to text?
- Wondering about the pricing using this plugin on Android? HOT 5
- How can I get the data and send it to the server? HOT 2
- support of speechContext
- Failed iOs
- Speech recognition doesn't work on iOS 13.3 HOT 1
- Pop up disable is not working HOT 1
- completeSilenceLength on Android HOT 2
- plugin does not work with ionic 5
- speech recognition service is not available on system on Android 11 Beta HOT 7
- I cannot use microphone with Airpod Pro on iOS HOT 1
- Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed HOT 1
- cordova ios recognition not working HOT 1
- recognition not working with android 12 HOT 2
- Disable "beep" sound on start and stop of speech recognition
- requestPermission method is broken in iOS
- Is it free to use (google speech api and ios cloud?)
- Not work for android 13
- Api key required
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-speechrecognition.