speech_recognition icon indicating copy to clipboard operation
speech_recognition copied to clipboard

iOS simulator vs iPhone

Open crashinc99 opened this issue 5 years ago • 2 comments

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!

crashinc99 avatar May 19 '19 15:05 crashinc99

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)

prantto avatar Jan 09 '20 16:01 prantto

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 [email protected] 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.

crashinc99 avatar Jan 09 '20 20:01 crashinc99