You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2023. It is now read-only.
Hi everybody,
just writing a couple line to help everybody to prevent you to use a shotgun against you computer.
I want to underline, that, on iOs everything seems fine, but on Android it seems to exist an issue that make the feature of this plugin to do not work properly.
It comes out when you implement this for both Android and iOs platforms, because, if you've read the doc and still comes to your mind, you'll remember that on Andorid it's not required to call this.speechRecognition.stopListening(); as the platform detects itself when the speech as ended. In counterpart, on iOs, that method it's mandatory to instruct the platform to stop recording and process the input.
The fact, is that, in realty, in Android, the this.speechRecognition.stopListening(); has a bad counter-effect, as it ends up the recording prematurly so it doesn't have the time to process it, and make the effect of the entire plugin to do not work.
To verify if you're affect, you just have to keep your UI button pushed a bit more, let's say, 1s more, after you stop dictate. With this time margin, you'll see the plugin work good.
In my case, I decided to keep the stopListening method even in Android, but to actually retard the action effect of 1 second, as follow:
Hi everybody,
just writing a couple line to help everybody to prevent you to use a shotgun against you computer.
I want to underline, that, on iOs everything seems fine, but on Android it seems to exist an issue that make the feature of this plugin to do not work properly.
It comes out when you implement this for both Android and iOs platforms, because, if you've read the doc and still comes to your mind, you'll remember that on Andorid it's not required to call
this.speechRecognition.stopListening();
as the platform detects itself when the speech as ended. In counterpart, on iOs, that method it's mandatory to instruct the platform to stop recording and process the input.The fact, is that, in realty, in Android, the this.speechRecognition.stopListening(); has a bad counter-effect, as it ends up the recording prematurly so it doesn't have the time to process it, and make the effect of the entire plugin to do not work.
To verify if you're affect, you just have to keep your UI button pushed a bit more, let's say, 1s more, after you stop dictate. With this time margin, you'll see the plugin work good.
In my case, I decided to keep the
stopListening
method even in Android, but to actually retard the action effect of 1 second, as follow:Smooth as the silk.
Cheers,
Jackie
The text was updated successfully, but these errors were encountered: