Git Product home page Git Product logo

Comments (22)

Mikaelle333777 avatar Mikaelle333777 commented on June 3, 2024 2

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.

pbakondy avatar pbakondy commented on June 3, 2024

You have to run on a device.
The iOS simulator does not have access to your Mac’s microphone.

from cordova-plugin-speechrecognition.

hybridapp20161 avatar hybridapp20161 commented on June 3, 2024

when i run on device it give me this error(error domain=kAFAssitantErrorDomainCode=216"(null)")

from cordova-plugin-speechrecognition.

pbakondy avatar pbakondy commented on June 3, 2024

Did you request permission?
What is your environment? cordova, xcode, ios version?

from cordova-plugin-speechrecognition.

hybridapp20161 avatar hybridapp20161 commented on June 3, 2024

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.

pbakondy avatar pbakondy commented on June 3, 2024

You have to call requestPermission() to get those permissions, info.plist only is not enough.

from cordova-plugin-speechrecognition.

hybridapp20161 avatar hybridapp20161 commented on June 3, 2024

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.

pbakondy avatar pbakondy commented on June 3, 2024

You should call it before using startListening().
You should see a popup window of permission request.

from cordova-plugin-speechrecognition.

hybridapp20161 avatar hybridapp20161 commented on June 3, 2024

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.

pbakondy avatar pbakondy commented on June 3, 2024

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.

hybridapp20161 avatar hybridapp20161 commented on June 3, 2024

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.

pbakondy avatar pbakondy commented on June 3, 2024

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.

hybridapp20161 avatar hybridapp20161 commented on June 3, 2024

We tried reinstalling as well but did not work.

from cordova-plugin-speechrecognition.

pbakondy avatar pbakondy commented on June 3, 2024

Please try with latest XCode 8.1 and iOS 10.1

from cordova-plugin-speechrecognition.

hybridapp20161 avatar hybridapp20161 commented on June 3, 2024

Have updated to ios version:10.1 (14B72) and xcode version:Version 8.1 (8B62) still same issue persist.

from cordova-plugin-speechrecognition.

LUCIANOSOLER avatar LUCIANOSOLER commented on June 3, 2024

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.

LUCIANOSOLER avatar LUCIANOSOLER commented on June 3, 2024

you can send me your project that works on your computer to iOS?

I can test here...

from cordova-plugin-speechrecognition.

pbakondy avatar pbakondy commented on June 3, 2024

Please check last release

from cordova-plugin-speechrecognition.

ozexpert avatar ozexpert commented on June 3, 2024

@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.

pbakondy avatar pbakondy commented on June 3, 2024

Yes it does

from cordova-plugin-speechrecognition.

cperezvinsite avatar cperezvinsite commented on June 3, 2024

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.

cperezvinsite avatar cperezvinsite commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.