-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any solution to add "loading" ability (by identifying whether the recognition has been performed)? #81
Comments
I've also requested a feature like this in #101. |
@unmeshpro - is this similar to #47 ? |
I would like to include such functionalities as plugins which would extend annyang's functionality, while keeping the base library lean. |
@unmeshpro , @lmangani , @alanjames1987 You can display when the browser is listening and when it stops by attaching events to the annyang.addCallback('start', function () {
console.log('Listening');
});
annyang.addCallback('end', function () {
console.log('Not listening');
}); If you're interested in displaying exactly when speech is detected, and when it stops (even if that happens a few seconds after starting speech recognition), I'm afraid it is currently impossible to do this because of what I believe is a bug in Chrome. I have opened a bug report with the Chromium team, and am awaiting their response. |
@TalAter I am using annyang.js with a three.js application and it seems quite disturbing not to know whether the speech is being recognized. Is there a way to monitor the state of request to recognize and the response from annyang so that I may add a loading or waiting animation?
The text was updated successfully, but these errors were encountered: