-
Notifications
You must be signed in to change notification settings - Fork 115
startListening don't work on iOS 10 #17
Comments
sadly Apple provides poor support for Speech API. Just look at the official forum: I really not able to tell you what could be the problem. It works on my device and I can not reproduce this error. |
I understand, can you send me your project? |
I'm also receiving Edit: This was after calling voiceSearch a second time. See my code below. voiceSearch() {
SpeechRecognition.isRecognitionAvailable()
.then((available: boolean) => {
SpeechRecognition.requestPermission()
.then(
() => {
SpeechRecognition.startListening()
.subscribe(
(matches: Array<string>) => {
this.query = matches[0];
this.getResponse();
console.log(matches[0]);
},
(onerror) => console.log('error:', onerror)
);
console.log('Granted');
},
() => console.log('Denied')
)
})
} |
I should mention the above also works flawlessly on Android. |
Same error here, with your plugin and with this one: https://github.com/macdonst/SpeechRecognitionPlugin |
Please check last release |
How can we update from Ionic? edit: |
I am still experiencing issues with using the code that I provided above. Here are the steps I took:
edit: Forgot to include the log. Thank you! |
@aurothic, How long did you wait? |
@aurothic you don't need to update ionic-native package.
|
Thanks @pbakondy now works ... |
Great! |
This worked for me as well. However, there still is the matter of waiting for a 1 minute timeout before displaying the results. Android detects when the user stops talking, is there any such way to do this on IOS? |
For ios use stopListening method. |
Yes, but when should I call it? Currently I have a button that starts the listening process. This works very well on android, does it not carry over to ios? |
You need use plugin "Platform" to knows if you are on android or ios. On my app I put timer when i call startListening for ios ( 5 seconds ) when time over, the program calls stopListening |
Seems like bad practice. Perhaps this plugin could be used with DB Meter. |
With Ionic 4 not working on IOS. |
I implemented functions in this order and works ok on Android, but startListening doesn't works on iOS 10.
Functions
Avaliable - (works on android and iOS)
HasPermition - (works on android and iOS)
RequestPermition - (works on android and iOS)
But startListening - (works on android, but not works on iOS 10)
I already given permission on NSMicrophoneUsageDescription and
NSSpeechRecognitionUsageDescription with its string value in info.plist
I call permissions before i call startListening, but doesn´t works on iOS.
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
The erros that appears to me is --> error domain=kAFAssistantErrorDomain, same as others issues.
Can you have some idea why this is happen?
The text was updated successfully, but these errors were encountered: