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
Describe the bug
On Android, there is no partial results. The "start()" promise resolves when the user stops speaking, and the voice recognition immediately stops. On iOS, the voice recognition continues until we stop it.
The culprit is the call to resolve on line 282 of SpeechRecognition.java. I'm not confident enough with the project to try a PR though...
Another issue is the type of the object returned in the onResult. On iOS we receive the results in the matches property, while it is in the value property on Android.
And finally, when the user stops speaking for a while on Android, the promise is rejected with "no match" error, and the recognition stops. Here, the culprit is probably the internal API, but we solve it by editing the onError method a bit:
👋 Can confirm that this is still an issue as of March 2024. It would be good to at least document the differences and which strategies can be employed (due to lack of isListening() API) to handle automatic stopping of recognition on iOS.
Describe the bug
On Android, there is no partial results. The "start()" promise resolves when the user stops speaking, and the voice recognition immediately stops. On iOS, the voice recognition continues until we stop it.
The culprit is the call to
resolve
on line 282 of SpeechRecognition.java. I'm not confident enough with the project to try a PR though...Another issue is the type of the object returned in the onResult. On iOS we receive the results in the
matches
property, while it is in thevalue
property on Android.The culprit here seems to be the line 389 of SpeechRecognition.java
And finally, when the user stops speaking for a while on Android, the promise is rejected with "no match" error, and the recognition stops. Here, the culprit is probably the internal API, but we solve it by editing the onError method a bit:
The text was updated successfully, but these errors were encountered: