rxlabz / speech_recognition

A Flutter plugin to use speech recognition on iOS & Android (Swift/Java)
https://pub.dartlang.org/packages/speech_recognition
Other
337 stars 197 forks source link

iOS simulator vs iPhone #45

Open crashinc99 opened 5 years ago

crashinc99 commented 5 years ago

I was able to implement an app that accepts voice commands. This is an iOS project at this point. I want to keep speech recognition running for extended periods. The setRecognitionCompleteHandler seems to be getting called automatically by iOS every minute or so. So, I reinitialize speech recognition from the CompleteHandler. This works well in the iOS simulator. Voice commands are activated by clicking a floating button, I give the voice command, the app does it's thing, and it waits for the next voice command. Clicking the floating button again causes it to stop listening. Perfect.

On my iPhone (6), I'm able to load and run the app, however it stops working after the first voice command. I click the floating button, give it the command, it does it's thing, then nothing. I have to click the floating button again to give another voice command.

Is there some permission or setting I need on the iPhone to achieve the behavior I'm getting with the iOS simulator? I'm running in debug mode. Not sure if that has anything to do with it.

Any help would be appreciated!

prantto commented 4 years ago

I have the same Issue. App works fine in the Simulator, but on my iPhone 7 and iPhone 11 the speech recognition doesn't work. Do you found the problem? (Simulator and Phones run all iOS 13.3)

crashinc99 commented 4 years ago

I got it to work a while back. The speech thing is a little quirky. I kept fiddling with the handlers and got the results I wanted. I tried a bunch of different things (months ago) so I don't remember specifically what did. Sorry.

I used these websites to get to where I wanted:

https://pub.dev/packages/speech_recognition https://steemit.com/utopian-io/@tensor/building-a-flutter-speech-to-textspeech-recognizer-application

Hope this helps....good luck. On Thursday, January 9, 2020, 11:28:30 AM EST, prantto notifications@github.com wrote:

I have the same Issue. App works fine in the Simulator, but on my iPhone 7 and iPhone 11 the speech recognition doesn't work. Do you found the problem? (Simulator and Phones run all iOS 13.3)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.