pbakondy / cordova-plugin-speechrecognition

:microphone: Cordova Plugin for Speech Recognition
MIT License
196 stars 116 forks source link

Android unwanted "tap tp speak" popup #25

Open jrlandau opened 7 years ago

jrlandau commented 7 years ago

On Android, with the option showPopup=true, Google's "microphone on" popup shows correctly. But after speech ends, another popup, that says "tap to speak" shows for a moment (as though it were behind the first popup) and then goes away. It does not affect recognition, which works just fine. Is there any way to avoid the "tap to speak" popup?

pbakondy commented 7 years ago

Device? Android version? Did you try showPopup=false? Does it works correctly?

jrlandau commented 7 years ago

Hi Peter,

I'm testing on a Motorola G4 running Android 6.0.1, and an HTC One running Android 5.0.2.

I have tried showPopup=false. It works correctly, EXCEPT when there is no speech. When there is no speech the speech recognition times out with its characteristic double beep, but the error callback does not get called.. After this, attempts to start recognition again do get an error: "RecognitionService busy". This condition persists until I restart the program..

When I set showPopup=true, if there is no speech the original request gets an error: "0". It would be nice if showPopup=false did the same thing.

Joe Landau

On Thu, Mar 23, 2017 at 6:20 AM, Peter Bakondy notifications@github.com wrote:

Device? Android version? Did you try showPopup=false? Does it works correctly?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pbakondy/cordova-plugin-speechrecognition/issues/25#issuecomment-288716681, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxmjOCljE2-4hguAdxgu6ZpvEctY2-Aks5ronG6gaJpZM4MmQfs .

machliang commented 7 years ago

Hi Peter, I have the same issue. My Env : Infocus M370 with Android 6.0.1 If " showPopup=false", the action is OK(including correct speech recognition) without any popup window. Thanks~ Mars